Welcome, Guest. Please Login or Register.
November 28, 2024, 01:59:32 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Deleted user brought down the house? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Deleted user brought down the house?  (Read 1128 times)
plowking
Noobie
*
Posts: 27


I'm real purdy

Deleted user brought down the house?
« on: March 03, 2003, 06:27:17 AM »
Reply with quote

I know it's cliched, but, HELP!

www.phantomcitizen.net/community using 1.4.1
I deleted a user for the first time tonight, and after that, the board will not let ANYONE login. The errors it's giving (above the home page after login are:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /www/p/pcitizen/htdocs/community/Sources/Subs.php on line 140

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /www/p/pcitizen/htdocs/community/Sources/Subs.php on line 143

I've tried a couple of accounts, Admin and not admin, and nothing is working. The page then shows our logo, then says "Hello User, you have messages are new"

and below that, the error text:
2: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
(/www/p/pcitizen/htdocs/community/Sources/Subs.php ln 140)

I have nothing but the default install plus the security patch from a few weeks ago.

My brand new and very active forum needs you, obi wan kenobi!
---PK
Logged
plowking
Noobie
*
Posts: 27


I'm real purdy

Re:Deleted user brought down the house?
« Reply #1 on: March 03, 2003, 06:28:18 AM »
Reply with quote

Oh, I should add, Guest users can browse ok. but it's when people try to login that nothing works!
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:Deleted user brought down the house?
« Reply #2 on: March 03, 2003, 06:34:49 AM »
Reply with quote

What is on those lines in Subs.php? btw, now might be a good time to upgrade to 1.5.1! ;)
Logged
plowking
Noobie
*
Posts: 27


I'm real purdy

Re:Deleted user brought down the house?
« Reply #3 on: March 03, 2003, 06:37:44 AM »
Reply with quote

I would if I could upgrade, but I was worried about losing my custom template, and right now I just need to get it back up!

Those lines in the subs.php file are all related to the instant message display function.


137    }
138    if($username != "Guest") {
139       $request = mysql_query("SELECT COUNT(*) FROM {$db_prefix}instant_messages WHERE (toName='$username' && deletedBy!=1)");
140       $temp = mysql_fetch_row($request);
141       $mnum = $temp[0];
142       $requestred = mysql_query("SELECT COUNT(*) FROM {$db_prefix}instant_messages WHERE (toName='$username' && readBy!=1 && deletedBy!=1)");
143       $temp2 = mysql_fetch_row($requestred);
144       $munred = $temp2[0];
145       if ($munred == "1") { $isare = $txt[newmessages0]; }
146       else { $isare = $txt[newmessages1]; }
147       if($mnum == "1") { $yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[471]</a>$txt[newmessages4] $munred $isare $txt[newmessages2]."; }
148       else { $yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[153]</a>$txt[newmessages4] $munred $isare $txt[newmessages2]."; }
149       if($maintenance) { $yyim .= "<BR><B>$txt[616]</B>"; }
150    }
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:Deleted user brought down the house?
« Reply #4 on: March 03, 2003, 06:39:30 AM »
Reply with quote

Do you have phpMyAdmin installed? You could try running:

REPAIR TABLE yabbse_instant_messages;
Logged
plowking
Noobie
*
Posts: 27


I'm real purdy

Re:Deleted user brought down the house?
« Reply #5 on: March 03, 2003, 06:56:30 AM »
Reply with quote

I do and I did.
and it worked!
Thanks so much!!!

Now...how hard is that upgrade? will I lose my custom template? (the one I adjusted in the admin section...nothing TOO custom.)

So happy I may buy a yabbSE teddy bear.
but who would I give it to?
---PK
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:Deleted user brought down the house?
« Reply #6 on: March 03, 2003, 06:59:45 AM »
Reply with quote

You shouldn't loose it but I would backup your Settings.php file and template.php just in case.
Logged
plowking
Noobie
*
Posts: 27


I'm real purdy

Re:Deleted user brought down the house?
« Reply #7 on: March 03, 2003, 07:25:32 AM »
Reply with quote

and my databases will be fine?
::apprehensive::
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Deleted user brought down the house?
« Reply #8 on: March 03, 2003, 07:28:21 AM »
Reply with quote

Quote from: plowking on March 03, 2003, 07:25:32 AM
and my databases will be fine?
::apprehensive::

If you are worried, make a backup.

By now, 1.5.1 is pretty stable.  I really anticipate releasing the final soon.

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Deleted user brought down the house? « 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.058 seconds with 20 queries.