![]() |
BIGINT UNSIGNED value is out of range error
I just got the following error while deleting a thread:
Code:
Database error in vBulletin 4.1.12: It has to do with the following code but I'm not sure how to fix it. I have never run into this error before. Hook: threaddata_delete Code:
if ($physicaldel) Does anyone see what I am missing there? |
Well the error means that its trying to subtract 6 from a value that is actually less than 6 to start with.
I'd be a lot more worried about what that code is actually doing, it looks like its running updates on user records for every post in a thread, so if your thread has 4000 posts, thats 4000 updates ! In fact, since its running one query to get all the postids, and then looping round them using fetch_postinfo(), its quite likely most of the posts dont exist in the postcache, so its also running individual queries to get each post, potentially another 4000. :erm: |
Thanks, Paul, for the quick response.
What it is doing is going through each post in the thread and subtracting the amount of words each user has posted in the thread and adjusting their total word count. I agree that a very large thread would be very resource intensive, but I only have a really small site so there is no real way of testing that issue. Is there a better way you run that and account for situation like this in the future? I *think* it is somehow subtracting the thread title word count too and that would account for the negative number. |
All times are GMT. The time now is 10:50 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:
|