The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
YIKES! Help please!!
I'm not sure what happened, but I was viewing my forums and all the sudden two errors appeared on the top of the screen, and now my forums are non-functional. I checked the source of the problem that the error's reference to but I can't really decifier the problem. I'm not sure if my server updated something or what, but my test-forums running on 2.2.5 seem to work properly still.
Attached is a screenshot of the error I'm getting. |
#2
|
||||
|
||||
In Global.php, here is the code located around line 187:
Code:
LINE 178: if ($bbuserinfo[userid]!=0 and $loginusername and !$createanonsession) { vbsetcookie('bbadminon', 1, 0); $HTTP_COOKIE_VARS['bbadminon']=1; } else { if ($bbuserinfo[userid]==0) { $HTTP_COOKIE_VARS['bbadminon']=0; } } LINE 187: if ($debug!=1) { // check for files existance. Potential security risks! if (file_exists("install.php")==1) { echo "<html><body><p>Security alert! install.php still remains in the admin directory. This poses a security risk, so please delete that file immediately. You cannot access the control panel until you do.</p></body></html>"; exit; } if (file_exists("upgrade1.php")==1 and substr($PHP_SELF,-strlen("upgrade1.php"))!="upgrade1.php") { echo "<html><body><p><a href=\"upgrade1.php?s=$session[sessionhash]\">upgrade1.php</a> exists. If you have already upgraded fully, please delete it. Otherwise, run it now.</p></body></html>"; exit; } } $checkpwd=1; if ($HTTP_COOKIE_VARS['bbadminon']==0 and substr($PHP_SELF,-strlen("upgrade1.php"))!="upgrade1.php" and $checkpwd) { $bbuserinfo[userid]=0; } else { if ($bbuserinfo['userid']!=0 and $loginusername and !$createanonsession) { setcookie("bbadminon",1,0,'/'); $HTTP_COOKIE_VARS['bbadminon']=1; } } Code:
if (defined('USE_COOKIE_WORKAROUND')) { // It's been reported that there's a bug in PHP 4.2.0/4.2.1 with Apache 2 causing setcookie() to not work correctly. // This is the workaround. If you need to use this code, please add: // define('USE_COOKIE_WORKAROUND', 1); // to your config.php. if (!$value) { // need to do this so IE deletes the cookie correctly $expire = time() - 31536001; $value = 'deleted'; } $cookieheader = "Set-Cookie: $name=".urlencode($value); if ($expire) { $cookieheader .= '; expires='.gmdate('D, d-M-Y H:i:s', $expire).' GMT'; } if ($cookiepath) { $cookieheader .= "; path=$cookiepath"; } if ($cookiedomain) { $cookieheader .= "; domain=$cookiedomain"; } if ($secure) { $cookieheader .= '; secure'; } LINE 1657: header($cookieheader, false); // force multiple headers of same type } else { setcookie($name, $value, $expire, $cookiepath, $cookiedomain, $secure); } |
#3
|
||||
|
||||
Sorry for the posts, but I really really wish somebody would help me out, cause this is getting serious now
I'm not sure whats up, but now my site doesn't even run. My test forums do though, and I just discovered they are running on 2.2.6, as I forgot they were. So now I'm not sure if this is a database error that my main forums are running on. I tried to use repair.php but even that gave me problems with global.php, I really need help! Anyway can I repair my database through phpmyadmin?? |
#4
|
||||
|
||||
OMG! 2 bumps in 2 hours...
Someone will help you when they have time. I have said this before, but I don't mind saying it again: TAKE BACKUPS BEFORE MAKING CHANGES, TRY EVERYTHING IN A TESTING ENVIRONMENT. My bet is that either you applied some hack, or you didn't upgrade proberly. |
#5
|
||||
|
||||
I upgraded to 2.2.6 last week, I've been running smoothly all week. I do have a backup, although its from 2 days ago and I've made alot of changes since then. I know its been empty tonight so I hope somebody, maybe FireFly, can check this out tommorow. I can understand a database going down from user-actions or faulty-installed hack, but I was only viewing my forums after about 1 hour of no editing to hacks or the forum at all and it crashed. I checked my recent hacks I installed and couldn't find anything. I didn't find your sarcasm to be very funny either...
|
#6
|
|||
|
|||
cut Velocd a little slack...these are his public forums.
|
#7
|
||||
|
||||
@nicksaunders:
Why? We are here because we want hacks, like making them, etc. The word HACK in itself should prompt ppl to take extra care before using it on a live board. I am sorry, but I have no sympathy for people that mess up their live board either through experimenting, failing to install a hack correctly or installing a bugged hack. Telling people to test locally, or at least at a copy in a different folder on their server (with separate DB, of course) shouldn't even be necesarry to mention. Don't get me wrong, I am more than willing to help others, but when I have time - not the instant they screw up their live board. |
#8
|
||||
|
||||
Damn you are cold man, I detest people like you so greatly. Just because I ask for help at the moment my forums crash you have to spit in my face and insult me. I'm sorry I'm not as great a hacker as you ok, alot of people aren't. I never intentionally screwed up my board, didn't I make that clear?
I was viewing my forums when they crashed, and I wasn't sure where the problem originated from. So I visited the forums in seek of help and posted my question, along with detail information. Instead of getting a positive response and some help you reply telling me to go screw myself. If that's your attitude about giving help then you can just go to hell. I know there are more decent people on these forums who wouldn't mind helping those who aren't the best at Mysql or databases. If you didn't want to help you didn't have to post, yet you did anyway to criticize me. This is my problem and not yours, as Nicksaunders pointed out. So don't reply to this thread, because I have zero interest at all in arguing with you. This thread topic is about how to figure out a solution for my problem, not cause more. Please, anybody who thinks they can solve the original problem stated in post #1 help me out! |
#9
|
|||
|
|||
Please do not Flame or Troll on this forum,
as with every forum, please follow the netiquette. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|