Php Error

liunx

Guest
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):<br /><br />Warning: main(language/lang-.php): failed to open stream: No such file or directory in /home/shorter/public_html/mainfile.php on line 197<br /><br />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<br /><br />Warning: head(themes//theme.php): failed to open stream: No such file or directory in /home/shorter/public_html/header.php on line 34<br /><br />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<br /><br />Fatal error: Call to undefined function: themeheader() in /home/shorter/public_html/header.php on line 50<br /><br />Thanks for any suggestions.<br /><br /><br />Sincerely,<br />ShawTheatre<!--content-->
Hi,<br /><br />You need to configure Nuke to define some of the variables - such as Language, so that it can then find the files.<!--content-->
Hehe, that sounds like a great idea... how do I do that? <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
copy the following code into a file and save it as fixtheme.php: <br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><?php <br /><br />##################################################### <br />##################################################### <br /><br />require("config.php"); <br /><br />$host = $dbhost; <br />$database = $dbname; <br />$username = $dbuname; <br />$password = $dbpass; <br />$def_theme = "NukeNews"; <br />mysql_connect($host, $username, $password); <br />@mysql_select_db($database); <br /><br />####################### BEGIN THE INSTALL ####################################### <br /><br />mysql_query("update ".$prefix."_config set Default_Theme='$def_theme'"); <br /><br />?><!--c2--></div><!--ec2--> <br /> <br /><br />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 <a href="http://yoursite.com/fixtheme.php" target="_blank">http://yoursite.com/fixtheme.php</a><!--content-->
Got it working, thanks again guys. You at TCH always come through. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
 
Back
Top