The Arcive of vBulletin Modifications Site. |
|
Weird DB error Details »»
|
|||||||||||||||||||||||||
I'm getting a weird db error when in the updating counters section of the admin CP in my 2.2.7 VB board.
Everything works OK except for the following command: Update Thread Info - update thread post counts, original posters, last post date, attachment totals When I click update for the default 2000 threads at a time update (or put any number in there) I get the following error: Code:
Thread ids:
Processing thread 528
There seems to have been a slight problem with the Domain.com database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
Database error in vBulletin Control Panel 2.2.7:
Invalid SQL: UPDATE thread SET lastpost=1031259149,replycount=0,postusername='DaveG', postuserid='3', lastposter='DaveG',attach= WHERE threadid=528
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=528' at line 1
mysql error number: 1064
Date: Tuesday 17th of June 2003 09:20:38 PM
Script: http://www.domain.com/forum/forum/admin/misc.php
Referer:
Any help would be appreciated, thanks! Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Reupload your original admin/misc.php file.
The double 'forum' means nothing. It's an artifact of the error process. |
|
#3
|
|||
|
|||
|
I've done this (uploaded the original misc.php file) and still get the same error. Any ideas? I don't believe I've ever touched this file, anyway.
|
|
#4
|
||||
|
||||
|
hmm this is extremely weird i am having the very same error
i even made a post about it one below urs https://vborg.vbsupport.ru/showthrea...threadid=54475 i'm using version 2.30 release candidate 3 |
|
#5
|
|||
|
|||
|
Very strange.. I am using my original misc.php also. I'll note that I did in fact delete a bunch of the threads that the script got stuck on. But when I rerun the script, it finds new threads to get stuck on!
Hopefully someone will have an idea. |
|
#6
|
||||
|
||||
|
i hope so too that scripts fone mashed for some reason it was ok yesterday tho :S
|
|
#7
|
||||
|
||||
|
having the same problem also, 2.30 final
edit : answer and qiuck fix http://www.vbulletin.com/forum/showt...te+thread+info |
|
#8
|
|||
|
|||
|
I read the messages over at vb.com and see that I need to enter the following code
Code:
if ($attachsum == "1") {$attachsum = "1";} else {$attachsum = "0";}
|
|
#9
|
||||
|
||||
|
Quote:
i thought it ment put it above (but this didnt work) // ###################### Start update threads ####################### then i put it under it and that didnt work |
|
#10
|
|||
|
|||
|
I figured it out...
Put that line of code before the following in misc.php Code:
$DB_site->query("UPDATE thread SET lastpost=$lastpost,replycount=$numberposts,postusername='".addslashes($firstusername)."', postuserid='$firstuserid', lastposter='".addslashes($lastusername)."',attach=$attachsum WHERE threadid=$threadid");
|
![]() |
|
|