Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.1
Author Message
Bamafan
Regular
Regular



Joined: Feb 07, 2004
Posts: 59

PostPosted: Thu Dec 16, 2004 4:57 pm Reply with quote

My site keeps giving the same error message... It goes down about 3 times a day at least... here is what I do to get the site back up but I need to fix this issue... I go into my web server and setup a new database, I can call it anything and can delete it after setting up... The error is killing my site because we never no how long it's been down before me or another admin go in and do this "tempoprary" fix... The erorr looks like this... PLEASE HELP!


Quote:
Warning: main(language/lang-.php): failed to open stream: No such file or directory in /home/ps2onlin/public_html/mainfile.php on line 200

Warning: main(): Failed opening 'language/lang-.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/ps2onlin/public_html/mainfile.php on line 200

Warning: head(themes//theme.php): failed to open stream: No such file or directory in /home/ps2onlin/public_html/header.php on line 31

Warning: head(): Failed opening 'themes//theme.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/ps2onlin/public_html/header.php on line 31

Fatal error: Call to undefined function: themeheader() in /home/ps2onlin/public_html/header.php on line 47


THANKS!
 
View user's profile Send private message
TheosEleos
Life Cycles Becoming CPU Cycles



Joined: Sep 18, 2003
Posts: 960
Location: Missouri

PostPosted: Thu Dec 16, 2004 5:29 pm Reply with quote

What is line 200 in mainfile.php?

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website AIM Address ICQ Number
PHrEEkie
Subject Matter Expert



Joined: Feb 23, 2004
Posts: 358

PostPosted: Thu Dec 16, 2004 5:45 pm Reply with quote

It's failing to include lang-english.php for whatever reason. I'm sure the mainfile is probably sound (easy enough to upload a fresh copy if curious). We used to get this error a lot back in the Tom's Port days, having something to do with switching languages. This error is also not finding the theme:
Failed opening 'themes//theme.php'

If it read Failed opening 'themes/subSilver/theme.php', then we'd have a filesystem problem, but that's not the case. The theme name variable is empty. Could be a cookie or a default theme problem. I'd clear IE Temp Files and cookies, see if the problem goes away (most likely won't... Murphy's Law apply Wink ). Next, I'd check the nuke_config table for the default theme, and (Important!) the nuke_users table for default theme and style. I believe you can just empty default theme and style in the users table, and that will force the default theme to load. The nuke_config default theme MUST be defined! Once the DB is sorted and temp files/cookies cleaned out (remember the Nuke cookie holds theme info from the last session!), then hopefully this mysterious behavior will go away.

PHrEEk

_________________
PHP - Breaking your legacy scripts one build at a time. 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Dec 16, 2004 9:37 pm Reply with quote

There's a good chance that your MySQL parameters are not correct. Those messages often appear because nuke can't read the nuke_config table.
 
View user's profile Send private message
Bamafan







PostPosted: Thu Dec 16, 2004 9:42 pm Reply with quote

I really don't understand what that means.... but is there an easy way to correct this.... it happens like 3-4 times a day at least...
 
Raven







PostPosted: Thu Dec 16, 2004 9:50 pm Reply with quote

Verify your MySQL settings in your nuke_config file. Then verify your nuke_config table as Phreek suggested.
 
PHrEEkie







PostPosted: Thu Dec 16, 2004 10:42 pm Reply with quote

Bama, do you have access to phpMyAdmin?

Look at your config.php. Verify what your $prefix and $user_prefix are set at (default is "nuke"). Use phpMyAdmin and verify there is in fact a table in there named nuke_config (or whatever_config if your prefix is different from nuke). If that table is missing, that would be a big problem...

If it's there, then check the field in nuke_config that is called Default_Theme and make sure that there's a valid theme name in there (and correctly capitalized to match the theme folder name). Also, make sure that the field Default_Theme has a capital D and T... some MySQL servers force lower-case, and that will make that field unusable (default_theme != Default_Theme). Let's get that far...

PHrEEk
 
Bamafan







PostPosted: Fri Dec 17, 2004 6:13 am Reply with quote

OK... I checked and yes I do have the nuke config file and yes the Default_Theme** is capitalized.... but under Default_Theme** is says NULL... so I have edited it to say the name of the theme that I want to use as default... was I correct in doing this?
 
Raven







PostPosted: Fri Dec 17, 2004 6:19 am Reply with quote

Yep. Is it working now?
 
Bamafan







PostPosted: Fri Dec 17, 2004 9:30 am Reply with quote

Well it was working when I left home... but it has crashed again and now my "temporary" database fix will not work either... the message is...

Quote:
Warning: head(themes//theme.php): failed to open stream: No such file or directory in /home/ps2onlin/public_html/header.php on line 31

Warning: head(): Failed opening 'themes//theme.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/ps2onlin/public_html/header.php on line 31

Fatal error: Call to undefined function: themeheader() in /home/ps2onlin/public_html/header.php on line 47


I'm really confused on how to correct this!
 
Raven







PostPosted: Fri Dec 17, 2004 10:29 am Reply with quote

Just for grins and giggles, use phpMyAdmin and do a repair on the nuke_config table.
 
Bamafan







PostPosted: Fri Dec 17, 2004 11:44 am Reply with quote

OK.. I've done the repair and the site is dtill down... Sad
 
Bamafan







PostPosted: Sun Dec 19, 2004 7:09 pm Reply with quote

Any more ideas... this is really killing the site. Thanks for any and all I help!
 
PHrEEkie







PostPosted: Sun Dec 19, 2004 7:36 pm Reply with quote

If you want to PM site info, I'll have a look... out of suggestions to post here...

I'll need:
FTP login
CPanel or other control GUI login
phpMyAdmin login (if you don't have access the CPanel)

PHrEEk
 
PHrEEkie







PostPosted: Mon Dec 20, 2004 7:14 pm Reply with quote

Update on this issue:

Could not reproduce errors. Examined DB and found that in the users table, the Anonymous user had been deleted. Replaced the Anonymous user. In Bamafan's user settings, user_theme had been set to '0', everyone else was NULL. In the table bbthemes, there was no theme ID of '0', only '1' for subSilver was defined there. Changed his user_theme to NULL. They are using multiple Themes on the site, so if the fixes done don't resolve the problem, he was advised to remove all but ONE theme and go from there.

PHrEEk
 
Bamafan







PostPosted: Tue Jan 04, 2005 8:53 pm Reply with quote

NEW ERROR... STILL NEED HELP!

Quote:
Warning: main(language/lang-.php): failed to open stream: No such file or directory in /home/ps2onlin/public_html/mainfile.php on line 217

Warning: main(language/lang-.php): failed to open stream: No such file or directory in /home/ps2onlin/public_html/mainfile.php on line 217

Warning: main(): Failed opening 'language/lang-.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/ps2onlin/public_html/mainfile.php on line 217

Warning: head(themes//theme.php): failed to open stream: No such file or directory in /home/ps2onlin/public_html/header.php on line 31

Warning: head(themes//theme.php): failed to open stream: No such file or directory in /home/ps2onlin/public_html/header.php on line 31

Warning: head(): Failed opening 'themes//theme.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/ps2onlin/public_html/header.php on line 31

Fatal error: Call to undefined function: themeheader() in /home/ps2onlin/public_html/header.php on line 47
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.1

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©