The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vBulletin Error - Help! :o
I'm not sure the cause of this error, does anyone know or has anyone seen it before?
Code:
Database error in vBulletin 3.7.2: Invalid SQL: SELECT * FROM threadrate WHERE userid = 18508 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 Request Date : Thursday, November 6th 2008 @ 02:03:02 AM Error Date : Thursday, November 6th 2008 @ 02:03:02 AM Script : http://www.domain.com/showthread.php? Referrer : IP Address : xx.xx.xx.xx.xx Username : User_name Classname : vB_Database MySQL Version : |
#2
|
||||
|
||||
Try disabling your plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php PHP Code:
|
#3
|
|||
|
|||
I went through all my mods and apparently this was the problem:
"vb.org Style Rating Module" Code:
if ($vbulletin->userinfo['userid']) { if ($rating = $db->query_first(" SELECT * FROM " . TABLE_PREFIX . "threadrate WHERE userid = " . $vbulletin->userinfo['userid'] . " AND threadid = $threadinfo[threadid] ")) { $rated = true; } } Thank you very much Lynne Edit: Mod link -> https://vborg.vbsupport.ru/showthread.php?t=155701 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|