vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   [Forum Manager > Delete Forum] BIGINT UNSIGNED value is out of range (https://vborg.vbsupport.ru/showthread.php?t=325604)

Scandal 09-18-2017 08:08 AM

[Forum Manager > Delete Forum] BIGINT UNSIGNED value is out of range
 
Hello all :)

Well, I'm troubled into this problem:
We have a lots of forums with subforms (vB3.8.4).
I'm trying to remove a header forum (so also all its subforums will deleted) on Forum Manager > (dropdown menu) Delete Forum

The process is taking enough and suddenly this db error appears:
Code:

Database error in vBulletin 3.8.4:

Invalid SQL:

                                UPDATE vb3_thread
                                SET attach = attach -
                                CASE
                                        WHEN threadid = 24894 THEN 1
                                        ELSE 0
                                END
                                WHERE threadid IN (-1,24894);

MySQL Error  : BIGINT UNSIGNED value is out of range in '(`xxxx`.`vb3_thread`.`attach` - (case when (`xxxx`.`vb3_thread`.`threadid` = 24894) then 1 else 0 end))'
Error Number  : 1690

We're talking about an integrated function of vB, not an addon.
Any idea how to fix this issue?

Scandal 09-19-2017 08:00 PM

Any idea? Is it a known bug? :)

I get this db error also with DISABLE_HOOKS to true.

Seven Skins 09-23-2017 08:29 PM

I don't know if this will help try to add this to sql somewhere.

Code:

SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';

Stingray27 09-27-2017 06:00 PM

The attach count on that thread is out of sync.

You need to run a query on your sql server to set it to something > 0 for that threadid.


All times are GMT. The time now is 04:02 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
  • Page Generation 0.01350 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete