| Author |
Message |
Bamafan Regular


Joined: Feb 07, 2004 Posts: 59
|
Posted:
Thu Dec 16, 2004 4:57 pm |
|
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! |
|
|
|
 |
TheosEleos Moderator

Joined: Sep 18, 2003 Posts: 958 Location: Missouri
|
Posted:
Thu Dec 16, 2004 5:29 pm |
|
What is line 200 in mainfile.php? |
|
|
 |
 |
PHrEEkie Subject Matter Expert

Joined: Feb 23, 2004 Posts: 250
|
Posted:
Thu Dec 16, 2004 5:45 pm |
|
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 ). 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 |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15049 Location: Kansas
|
Posted:
Thu Dec 16, 2004 9:37 pm |
|
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. |
|
|
|
 |
Bamafan Regular


Joined: Feb 07, 2004 Posts: 59
|
Posted:
Thu Dec 16, 2004 9:42 pm |
|
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 Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15049 Location: Kansas
|
Posted:
Thu Dec 16, 2004 9:50 pm |
|
Verify your MySQL settings in your nuke_config file. Then verify your nuke_config table as Phreek suggested. |
|
|
|
 |
PHrEEkie Subject Matter Expert

Joined: Feb 23, 2004 Posts: 250
|
Posted:
Thu Dec 16, 2004 10:42 pm |
|
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 Regular


Joined: Feb 07, 2004 Posts: 59
|
Posted:
Fri Dec 17, 2004 6:13 am |
|
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 Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15049 Location: Kansas
|
Posted:
Fri Dec 17, 2004 6:19 am |
|
|
|
 |
Bamafan Regular


Joined: Feb 07, 2004 Posts: 59
|
Posted:
Fri Dec 17, 2004 9:30 am |
|
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 Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15049 Location: Kansas
|
Posted:
Fri Dec 17, 2004 10:29 am |
|
Just for grins and giggles, use phpMyAdmin and do a repair on the nuke_config table. |
|
|
|
 |
Bamafan Regular


Joined: Feb 07, 2004 Posts: 59
|
Posted:
Fri Dec 17, 2004 11:44 am |
|
OK.. I've done the repair and the site is dtill down...  |
|
|
|
 |
Bamafan Regular


Joined: Feb 07, 2004 Posts: 59
|
Posted:
Sun Dec 19, 2004 7:09 pm |
|
Any more ideas... this is really killing the site. Thanks for any and all I help! |
|
|
|
 |
PHrEEkie Subject Matter Expert

Joined: Feb 23, 2004 Posts: 250
|
Posted:
Sun Dec 19, 2004 7:36 pm |
|
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 Subject Matter Expert

Joined: Feb 23, 2004 Posts: 250
|
Posted:
Mon Dec 20, 2004 7:14 pm |
|
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 Regular


Joined: Feb 07, 2004 Posts: 59
|
Posted:
Tue Jan 04, 2005 8:53 pm |
|
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 |
|
|
|
|
 |
|
|
|
|