ShawTheatre Posted August 21, 2004 Posted August 21, 2004 I'm not sure if you guys will be able to help, but I get this error no matter where I try to go at my site (with the exception of the CPanel): Warning: main(language/lang-.php): failed to open stream: No such file or directory in /home/shorter/public_html/mainfile.php on line 197 Warning: main(): Failed opening 'language/lang-.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/lib/php') in /home/shorter/public_html/mainfile.php on line 197 Warning: head(themes//theme.php): failed to open stream: No such file or directory in /home/shorter/public_html/header.php on line 34 Warning: head(): Failed opening 'themes//theme.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/lib/php') in /home/shorter/public_html/header.php on line 34 Fatal error: Call to undefined function: themeheader() in /home/shorter/public_html/header.php on line 50 Thanks for any suggestions. Sincerely, ShawTheatre Quote
TCH-Andy Posted August 21, 2004 Posted August 21, 2004 Hi, You need to configure Nuke to define some of the variables - such as Language, so that it can then find the files. Quote
ShawTheatre Posted August 21, 2004 Author Posted August 21, 2004 Hehe, that sounds like a great idea... how do I do that? Quote
TCH-Dick Posted August 21, 2004 Posted August 21, 2004 copy the following code into a file and save it as fixtheme.php: ><?php ##################################################### ##################################################### require("config.php"); $host = $dbhost; $database = $dbname; $username = $dbuname; $password = $dbpass; $def_theme = "NukeNews"; mysql_connect($host, $username, $password); @mysql_select_db($database); ####################### BEGIN THE INSTALL ####################################### mysql_query("update ".$prefix."_config set Default_Theme='$def_theme'"); ?> If you don't have the NukeNews theme uploaded in your site then change the value for $def_theme = "Insert_Theme_Name_Here"; so that it reflects one of your working themes, save it, upload it, then point your browser to http://yoursite.com/fixtheme.php Quote
ShawTheatre Posted August 22, 2004 Author Posted August 22, 2004 Got it working, thanks again guys. You at TCH always come through. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.