You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 60 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - this is one for the pros [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
xeroz
Nuke Cadet
Nuke Cadet


Joined: Nov 16, 2007
Posts: 4


PostPosted: Thu Nov 15, 2007 4:01 pm Reply with quoteBack to top

ok last night my site was working fine...i wake up this morning and everywhere i go with a php extension on my site is throwing some error that is causing my browser to throw me a Bad Response from Server error...after much eye hurting searching through my php files and playing with things...the problem seems to be within the header.php file and when i commented out the themeheader(); line of line 81 the site stopped throwing the error but naturally......it looks all sorts of messed up....no blocks anywhere to be found on the site....this occurrs with any theme heard of this before by chance?


also for more trouble shooting ive replaced the original install header.php with the current to see if that would fix the problem after commenting out that line, and it threw the error back at me....which in turn leads me to believe that it might not exactly be the problem just allows the error to run free when commenting out the line
Find all posts by xerozView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Thu Nov 15, 2007 5:12 pm Reply with quoteBack to top

Time to ask what changed in your PHP configuration. Ask your host

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
xeroz
Nuke Cadet
Nuke Cadet


Joined: Nov 16, 2007
Posts: 4


PostPosted: Thu Nov 15, 2007 5:26 pm Reply with quoteBack to top

heh, way ahead of ya partner.....one of the techs for my host is whom helped me today in tracking down this problem, because i was at first thinking it was a ddos attack because of the bad response blah blah...i told him what i had found out and we tried putting our heads together and we can't think of the problem we ran a few test scripts to check the php for the host and all those test scripts passed
Find all posts by xerozView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Thu Nov 15, 2007 6:24 pm Reply with quoteBack to top

Can you track down in your theme.php what code is executing in the themeheader() function?

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
xeroz
Nuke Cadet
Nuke Cadet


Joined: Nov 16, 2007
Posts: 4


PostPosted: Thu Nov 15, 2007 6:59 pm Reply with quoteBack to top

function themeheader() {

global $user, $cookie, $prefix, $user_prefix, $db, $dbi, $userinfo, $sitekey, $name;

$ThemeSel = get_theme();



if (file_exists("themes/$ThemeSel/functions.php")){

require_once("themes/$ThemeSel/functions.php");

}

cookiedecode($user);

mt_srand ((double)microtime()*1000000);

$maxran = 1000000;

$random_num = mt_rand(0, $maxran);

$datekey = date("F j");

$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));

$code = substr($rcode, 2, 6);

$username = $cookie[1];

if ($username == "") {

$username = "GUEST";

}
Find all posts by xerozView user's profileSend private message
xeroz
Nuke Cadet
Nuke Cadet


Joined: Nov 16, 2007
Posts: 4


PostPosted: Thu Nov 15, 2007 7:01 pm Reply with quoteBack to top

also just checked with my host there have been no changes to the php configs
Find all posts by xerozView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Fri Nov 16, 2007 5:58 am Reply with quoteBack to top

Hmm I see nothing wrong there. Start commenting out code and seeing whether its one of the lines in that function

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.228 Seconds - 154 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::