| Author |
Message |
xeroz
Nuke Cadet


Joined: Nov 16, 2007
Posts: 4
|
Posted:
Thu Nov 15, 2007 4:01 pm |
  |
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 |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12342
|
Posted:
Thu Nov 15, 2007 5:12 pm |
  |
|
     |
 |
xeroz
Nuke Cadet


Joined: Nov 16, 2007
Posts: 4
|
Posted:
Thu Nov 15, 2007 5:26 pm |
  |
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 |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12342
|
Posted:
Thu Nov 15, 2007 6:24 pm |
  |
|
     |
 |
xeroz
Nuke Cadet


Joined: Nov 16, 2007
Posts: 4
|
Posted:
Thu Nov 15, 2007 6:59 pm |
  |
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";
} |
|
|
   |
 |
xeroz
Nuke Cadet


Joined: Nov 16, 2007
Posts: 4
|
Posted:
Thu Nov 15, 2007 7:01 pm |
  |
also just checked with my host there have been no changes to the php configs |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12342
|
Posted:
Fri Nov 16, 2007 5:58 am |
  |
|
     |
 |
|
|