Welcome, Guest. Please Login or Register.
August 27, 2025, 11:17:17 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Sudden Errors, Need help pls « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Sudden Errors, Need help pls  (Read 369 times)
groan
Jr. Member
**
Posts: 56


I wanna be a llama!

WWW
Sudden Errors, Need help pls
« on: March 25, 2002, 08:32:43 PM »
Reply with quote

i get this on my main page at the bottom instead of the menue above the footer.

This was all working fine a few minutes ago, i have changed nothing!!!
www.battlegrounds.groan.ca


2: Supplied argument is not a valid MySQL result resource
(/home/sites/site62/web/BattleGrounds/Sources/BoardIndex.php ln 235)

and this when i click the admin button..
2: Supplied argument is not a valid MySQL result resource
(/home/sites/site62/web/BattleGrounds/Sources/Admin.php ln 73)
« Last Edit: March 25, 2002, 08:36:40 PM by groan » Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Sudden Errors, Need help pls
« Reply #1 on: March 25, 2002, 08:49:45 PM »
Reply with quote

Your log-clicks table has locked up.  Delete it and recreate it (you don't lose anything - it's a useless feature anyway).
Logged

groan
Jr. Member
**
Posts: 56


I wanna be a llama!

WWW
Re:Sudden Errors, Need help pls
« Reply #2 on: March 25, 2002, 08:56:41 PM »
Reply with quote

Thanks Jeff,
You are a neverending source of answers (and damn quick too!)

ill do that as soon as i get home...
you rock, as always.
Logged
groan
Jr. Member
**
Posts: 56


I wanna be a llama!

WWW
Re:Sudden Errors, Need help pls
« Reply #3 on: March 26, 2002, 03:49:00 AM »
Reply with quote

your suggestion did fix it so i could get back into the admin console, but the footer menue is still broken with this error

2: Supplied argument is not a valid MySQL result resource
(/home/sites/site62/web/BattleGrounds/Sources/BoardIndex.php ln 235)


it probably wont help, but here is line 235...

// load the number of users online right now
   $guests = 0;
   $tmpusers = array();
   $request3 = mysql_query("SELECT identity FROM {$db_prefix}log_online WHERE 1 ORDER BY logTime DESC");
   while ($tmp = mysql_fetch_array($request3))
   {
      $identity = $tmp[0];
      $request4 = mysql_query("SELECT realName FROM {$db_prefix}members WHERE (memberName='$identity') LIMIT 1");
      if (mysql_num_rows($request4) > 0){
         $tmp = mysql_fetch_row($request4);
         $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$identity\">$tmp[0]</a>";
      }
      else
         $guests ++;
   }
   $users = "<font size=1>".implode(", ",$tmpusers)."</font>";
   $numusersonline = sizeof($tmpusers);

   if( $username != 'Guest' ) {
      // deal with instant messages
      $request3 = mysql_query("SELECT COUNT(*) FROM {$db_prefix}instant_messages WHERE (ID_MEMBER_TO=$ID_MEMBER && deletedBy != 1)");
       $temp = mysql_fetch_row($request3);
       $messnum = $temp[0];
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Sudden Errors, Need help pls
« Reply #4 on: March 26, 2002, 03:42:48 PM »
Reply with quote

Well, make sure your log_online table isn't locked up as well.
Logged

groan
Jr. Member
**
Posts: 56


I wanna be a llama!

WWW
Re:Sudden Errors, Need help pls
« Reply #5 on: March 26, 2002, 04:20:15 PM »
Reply with quote

Ugh,
thanks, what causes the table to lock up? any idea?

just got another one.......
this one with looking up a persons profile

2: Supplied argument is not a valid MySQL result resource
(/home/sites/site62/web/BattleGrounds/Sources/Profile.php ln 674)

looking to see if there is a fix now.

***edit
Didnt see a fix to the above error, maybe related? i just checked and yes it says that table is "in use".

will update
« Last Edit: March 26, 2002, 04:33:23 PM by groan » Logged
groan
Jr. Member
**
Posts: 56


I wanna be a llama!

WWW
Re:Sudden Errors, Need help pls
« Reply #6 on: March 26, 2002, 04:36:56 PM »
Reply with quote

Seems to have worked.

Ill watch for that in the future..
thanks again Sir Rockalot.
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Sudden Errors, Need help pls « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.077 seconds with 21 queries.