PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Bamafan
Regular
Regular


Joined: Feb 07, 2004
Posts: 59

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

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
Moderator


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

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

What is line 200 in mainfile.php?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger ICQ Number
PHrEEkie
Subject Matter Expert


Joined: Feb 23, 2004
Posts: 250

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

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
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15049
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
Bamafan
Regular
Regular


Joined: Feb 07, 2004
Posts: 59

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

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...
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15049
Location: Kansas

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

Verify your MySQL settings in your nuke_config file. Then verify your nuke_config table as Phreek suggested.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
PHrEEkie
Subject Matter Expert


Joined: Feb 23, 2004
Posts: 250

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

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
View user's profile Send private message
Bamafan
Regular
Regular


Joined: Feb 07, 2004
Posts: 59

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

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?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15049
Location: Kansas

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

Yep. Is it working now?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Bamafan
Regular
Regular


Joined: Feb 07, 2004
Posts: 59

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

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!
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15049
Location: Kansas

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

Just for grins and giggles, use phpMyAdmin and do a repair on the nuke_config table.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Bamafan
Regular
Regular


Joined: Feb 07, 2004
Posts: 59

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

OK.. I've done the repair and the site is dtill down... Sad
View user's profile Send private message
Bamafan
Regular
Regular


Joined: Feb 07, 2004
Posts: 59

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

Any more ideas... this is really killing the site. Thanks for any and all I help!
View user's profile Send private message
PHrEEkie
Subject Matter Expert


Joined: Feb 23, 2004
Posts: 250

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

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
View user's profile Send private message
PHrEEkie
Subject Matter Expert


Joined: Feb 23, 2004
Posts: 250

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

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
View user's profile Send private message
Bamafan
Regular
Regular


Joined: Feb 07, 2004
Posts: 59

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

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
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum