The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
1064
Hi there
I know there is a lot of treads about 1064, but I try here anyway ;0) I get this when trying to "Update Thread Info": ************************ Database error in vBulletin Control Panel 2.3.0: Invalid SQL: UPDATE thread SET lastpost=1056897578,replycount=13,postusername='Fr eja', postuserid='8', lastposter='Freja',attach= WHERE threadid=1996 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 'WHERE threadid=1996' at line 1 mysql error number: 1064 ************************ |
#2
|
||||
|
||||
Quote:
if it's produced by a hack, you may ask the author about an bugfixed version, if it's caused by vbulletin itself you should upgrade to the newest version |
#3
|
|||
|
|||
Quote:
I ran into the same problem... it's because MySQL will return NULL when count(_) contains nothing, not 0, so you need to find this line and intval() it |
#4
|
||||
|
||||
Quote:
Where do I find the line (where to look) and sorry for not being in the know, what do you mean by intval() it? I can add hacks, find most errors and find my way around mySQL if I know what to look for, but other than that, I'm really just a newbie to php and mySQL I can update all counters, just not "Update treade info", that must give some idea of what file to look in? |
#5
|
||||
|
||||
My "Start update thread count" section in "functions.php"
compares ok with the original "functions.php": ******************************* PHP Code:
Does that mean that it is in the mySQL the problem is? |
#6
|
||||
|
||||
Open misc.php
(Line 275 IIRC, I could be wrong though) Find: PHP Code:
PHP Code:
|
#7
|
||||
|
||||
Quote:
Thank you sooooo much :banana: It's working perfectly now! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|