SFML community forums

General => SFML website => Topic started by: eXpl0it3r on July 24, 2012, 06:33:42 pm

Title: Search/Database problem
Post by: eXpl0it3r on July 24, 2012, 06:33:42 pm
I've now run twice into this database error with the search function and I guess it could happen even more often if I'd need to use the search function more (which I probably should have (http://en.sfml-dev.org/forums/index.php?topic=8629) ;D).

(http://i.imgur.com/X9cEp.png) (http://i.imgur.com/X9cEp.png)

Do you know the reason for this and/or how it could get fixed?


(A side note isn't 128kb individual file size a bit too limiting, e.g. couldn't add the image as attachment....)
Title: Re: Search/Database problem
Post by: Laurent on July 25, 2012, 10:47:38 pm
I have no idea sorry :(
Title: Re: Search/Database problem
Post by: binary1248 on July 26, 2012, 03:15:44 pm
Found this: http://www.simplemachines.org/community/index.php?topic=423482.msg3325138#msg3325138

Happens to me on my server a lot too that the MySQL daemon drops connections under too much load. I guess I tuned the my.conf too much :P
Title: Re: Search/Database problem
Post by: zsbzsb on July 29, 2012, 02:56:03 pm
This^^ is the exact same thing I got here (http://en.sfml-dev.org/forums/index.php?topic=7669.msg50932).
Title: Re: Search/Database problem
Post by: Laurent on July 29, 2012, 03:00:00 pm
Did you have all the forums selected for this search?
Title: Re: Search/Database problem
Post by: eXpl0it3r on July 29, 2012, 03:07:51 pm
Is there a way not to select all forums?
Title: Re: Search/Database problem
Post by: Laurent on July 29, 2012, 04:32:54 pm
Of course, below "CHOOSE A BOARD TO SEARCH IN, OR SEARCH ALL" ;)

It would be much better if it was expanded by default though. I'll see if I can change that.
Title: Re: Search/Database problem
Post by: eXpl0it3r on July 29, 2012, 04:41:38 pm
Of course, below "CHOOSE A BOARD TO SEARCH IN, OR SEARCH ALL" ;)

It would be much better if it was expanded by default though. I'll see if I can change that.
Ah lol, I never noticed that it's expandable. ;D
I was always thinking about what unchecking the 'Check all' box would do, or what the sense is, since you "can't" choose specific forums. ;)
Title: Re: Search/Database problem
Post by: eXpl0it3r on August 04, 2012, 10:03:10 pm
Arg it happend again twice today.  >:(
This is getting annoying... :-\
Title: Re: Search/Database problem
Post by: natchos on August 16, 2012, 11:42:30 pm
Happening almost constantly. It also gives an error where the browser says that the server sent no data.
Title: Re: Search/Database problem
Post by: eXpl0it3r on September 03, 2012, 04:48:31 pm
Well the search function seems to become more and more useless, i.e. I've now tried to search something 10 times in a row and always either got the PHP error from above or an EMPTY_RESPONSE from the server... >:(

I did a little research and came up with this statement about the error (source (http://www.simplemachines.org/community/index.php?topic=440101.msg3094279#msg3094279)):
Quote from:  Spuds
This error basically means that sometime between when the page load began (which means an sql connection was made) but before the end the page the mysql connection dropped.  This should *never* happen but it does, I don't know why but it does.
Laurent: Could you maybe check the MySQL logs & SFM logs for strange mysql drops or similar and/or contact your hoster, maybe they know more about this...

I've also found these two threads, but I haven't digged all the way through it, but maybe there's a solution somewhere:
http://www.simplemachines.org/community/index.php?topic=423482.0 (http://www.simplemachines.org/community/index.php?topic=423482.0)
http://portamx.com/2835/error_log-shows-an-error-in-subs-db-mysql-php-on-line-130/ (http://portamx.com/2835/error_log-shows-an-error-in-subs-db-mysql-php-on-line-130/)

Or does this solution (http://www.sergechel.info/articles/fix_smf_error_mysql_real_escape_string_expects_parameter_2_be_resource_boolean_given) fix it?

Edit: Ah well binary actually linked already to that issue, so it seems to be that the MySQL server just drops the connection because of too much load. So this should be solved by the hoster...
Title: Re: Search/Database problem
Post by: Laurent on September 03, 2012, 04:54:52 pm
Quote
Or does this solution fix it?
It fixes the error message error, but the connection is still lost when the search takes too long.