Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 06-02-2002, 01:46 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Attached Images
File Type: gif error.gif (51.0 KB, 0 views)
Reply With Quote
  #2  
Old 06-02-2002, 01:54 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
  }
}
And for functions.php, here is the code around line 1657:

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);
  }
A cookie problem of some sort?
Reply With Quote
  #3  
Old 06-02-2002, 03:57 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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??
Reply With Quote
  #4  
Old 06-02-2002, 04:05 AM
Sparkz's Avatar
Sparkz Sparkz is offline
 
Join Date: Nov 2001
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 06-02-2002, 04:24 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #6  
Old 06-02-2002, 04:44 AM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cut Velocd a little slack...these are his public forums.
Reply With Quote
  #7  
Old 06-02-2002, 01:59 PM
Sparkz's Avatar
Sparkz Sparkz is offline
 
Join Date: Nov 2001
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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.
Reply With Quote
  #8  
Old 06-02-2002, 03:24 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #9  
Old 06-02-2002, 04:55 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please do not Flame or Troll on this forum,
as with every forum, please follow the netiquette.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:55 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03921 seconds
  • Memory Usage 2,260KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete