![]() |
Weird DB error
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: Any help would be appreciated, thanks! |
Reupload your original admin/misc.php file.
The double 'forum' means nothing. It's an artifact of the error process. |
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.
|
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 |
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. |
i hope so too that scripts fone mashed for some reason it was ok yesterday tho :S
|
having the same problem also, 2.30 final
edit : answer and qiuck fix http://www.vbulletin.com/forum/showt...te+thread+info |
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";} |
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 |
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"); |
All times are GMT. The time now is 09:31 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|