PDA

View Full Version : Strange Database Error Today...Not Sure Why.


RedTurtle
11-06-2013, 03:12 PM
I had a random vBulletin database error today on my forum. It seems to have occurred when someone was using the search feature.

Here is the error:

Database error in vBulletin 4.2.1:

Invalid SQL:

SELECT post.*,userfield.*, usertextfield.*, user.*, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar,
customavatar.dateline AS avatardateline, customavatar.width AS width, customavatar.height AS height,
customavatar.height_thumb AS height_thumb, customavatar.width_thumb AS width_thumb, customavatar.filedata_thumb
FROM post AS post
LEFT JOIN user AS user ON (user.userid = post.userid)
LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid)
LEFT JOIN usertextfield AS usertextfield ON (user.userid = usertextfield.userid)
LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid)
LEFT JOIN customavatar AS customavatar ON (customavatar.userid = post.userid)
WHERE post.postid IN (.);

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 10
Error Number : 1064
Request Date : Wednesday, November 6th 2013 @ 05:45:50 AM
Error Date : Wednesday, November 6th 2013 @ 05:45:50 AM
Script : http://mydomain.com/search.php?searchid=103436&pp=&page=16
Referrer : http://mydomain.com/search.php?searchid=103436&pp=&page=16


IP Address : 175.110.xxx.xxx
Username : Unregistered
Classname : vB_Database
MySQL Version :

Anyone have any idea what could be causing this? Have not made any modifications to the site recently.

Thank you.

ozzy47
11-06-2013, 03:51 PM
Do you allow guests to use the search feature?

RedTurtle
11-09-2013, 02:44 PM
Yes I do.

Lynne
11-09-2013, 06:11 PM
If it was just a one time thing, then I wouldn't worry about it. If you can repeat it, then you can try to work on the issue, but if it's non-repeatable then it's going to be hard to work on.

RedTurtle
11-09-2013, 06:34 PM
Thanks Lynne, the error message showed up twice within a period of 5 minutes and didn't happen after that. Does the error message shed any light on what's going on or what's causing the issue?

Lynne
11-09-2013, 06:46 PM
It looks like he did a search and it said there were 16 pages of results but when he went to page 16, there were actually 0 posts and so it threw an error. I suppose you could Rebuild Thread Information.