Log in

View Full Version : Unexplainable database error


Millenium IT
10-26-2007, 02:46 PM
Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT *
FROM threadrate
WHERE userid = 1
AND threadid =;

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 4
Error Number : 1064
Date : Friday, October 26th 2007 @ 11:44:45 AM
Script : forum/showthread.php?goto=newpost&t=5762
Referrer : forum/showthread.php?p=16964
IP Address : ~censored~
Username : Millenium IT
Classname : vB_Database

Help?

Marco van Herwaarden
10-27-2007, 08:00 AM
To troubleshoot this, please remove any hacks and disable your plugins, then see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

If so, reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server.

If your problem still exists, please create a new Style with no Parent set. Now browse the forum using this new style, do you still have the same problems? If you are troubleshooting login or guest issues, you will need to set this style as board default in the vBulletin Options.