News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Error while banning (takes > 5 minutes)

Started by Maxtor, May 20, 2009, 10:02:49 PM

Previous topic - Next topic

Maxtor

When i ban someone i see this error :

2: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Unable to save result set
File: /home/maxt0ras/public_html/forum/Sources/Subs.php
Line: 321


Line 321 code:

$ret = mysql_query($db_string, $db_connection);
if ($ret === false && $file !== false)
$ret = db_error($db_string, $file, $line);


Aleksi "Lex" Kilpinen

Hi :)

Do you have very many bans in effect?
Have you been getting any other Database related errors lately?
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Maxtor

Quote from: LexArma on May 28, 2009, 04:17:14 AM
Hi :)

Do you have very many bans in effect?
Have you been getting any other Database related errors lately?

yes i have a lot of banned accounts. error is keep doing. what shall i do?

JimM

Using phpMyAdmin (What is phpMyAdmin?) check your database tables to make sure you don't have any that are crashed.  Specifically take a look at smf_ban_items and smf_ban_groups tables. 

What other errors are you getting?
Jim "JimM" Moore
Former Support Specialist

Maxtor

Quote from: JimM on May 30, 2009, 01:08:43 AM
Using phpMyAdmin (What is phpMyAdmin?) check your database tables to make sure you don't have any that are crashed.  Specifically take a look at smf_ban_items and smf_ban_groups tables. 

What other errors are you getting?

only error 500 (internal error) and more than 2-3 minutes to ban someone.

JimM

If you are getting Internal Server Errors, it would be a good idea to contact your host.  At least take a look at your server error logs if you can from your host control panel.
Jim "JimM" Moore
Former Support Specialist

karlbenson

The ban queries in smf 1.1.x don't work well with many banned items/members.

They have been re-written in smf 2.x to be much more efficient.

Advertisement: