Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 01-28-2014, 12:11 AM
AramisErak AramisErak is offline
 
Join Date: Apr 2013
Location: Alaska
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Private Messages database problem in 3.8.4

Had an error suddenly start showing up in the last few days.

Quote:
Database error in vBulletin 3.8.4:

Invalid SQL:

UPDATE coti_user
SET pmtotal = pmtotal + 1, pmunread = pmunread + 1,
pmpopup =
CASE
WHEN userid IN(168) THEN 2
ELSE pmpopup
END

WHERE userid IN(168);

MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Monday, January 27th 2014 @ 08:03:36 PM
Error Date : Monday, January 27th 2014 @ 08:04:36 PM
Script : http://www.travellerrpg.com/CotI/Dis...insertpm&pmid=
Referrer : http://www.travellerrpg.com/CotI/Dis...do=newpm&u=295
IP Address : 72.35.122.228
Username : aramis
Classname : vB_Database
MySQL Version :
I need help understanding the message.

Notes:
Occurs on sending PM's.
PMs still going through.
Sent PMs not showing in sent messages folder.
Reply With Quote
  #2  
Old 01-28-2014, 12:17 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried with all mods disabled?
What vB version and PHP version are you running?
Reply With Quote
  #3  
Old 01-28-2014, 01:59 AM
AramisErak AramisErak is offline
 
Join Date: Apr 2013
Location: Alaska
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Have you tried with all mods disabled?
What vB version and PHP version are you running?
vB, as stated TWICE above, is 3.8.4
PHP - don't know. Somewhere in the 5.x range.

But no changes have been made in months to the mods in use. And turning all off crashes the interface
Reply With Quote
  #4  
Old 01-28-2014, 02:04 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried with all mods disabled?

To find out the PHP version, go to ACP --> Maintenance --> View PHP Info
Reply With Quote
  #5  
Old 01-28-2014, 02:27 AM
AramisErak AramisErak is offline
 
Join Date: Apr 2013
Location: Alaska
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP 5.4.24.
and as stated above, all off crashes the user interface.

Edit: I walked into adminning a board with extensive UI mods.
Reply With Quote
  #6  
Old 01-28-2014, 02:29 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AramisErak View Post
PHP 5.4.24.
and as stated above, all off crashes the user interface.
This happens with turning the hooks off in AdminCP>Options>Plugin/Hook system?

Because.... It shouldn't. All this does is ensure that only native vBulletin code is run.

Quote:
Originally Posted by AramisErak View Post
Edit: I walked into adminning a board with extensive UI mods.
It doesn't matter how many mods it has, turning off the hooks puts you in default mode and shouldn't "crash" anything.
Reply With Quote
  #7  
Old 01-28-2014, 02:37 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vB 3.8.4 is not compatible with PHP 5.4, so you will need to upgrade to vB v3.8.8 or downgrade your PHP to 5.3.X
Reply With Quote
  #8  
Old 01-28-2014, 02:58 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How many are you getting per day?

Can you try running the query in phpmyadmin?

Who is userid 168? Do they have a ton of PM's ?
Reply With Quote
  #9  
Old 01-28-2014, 03:08 AM
AramisErak AramisErak is offline
 
Join Date: Apr 2013
Location: Alaska
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
How many are you getting per day?

Can you try running the query in phpmyadmin?

Who is userid 168? Do they have a ton of PM's ?
Me. No.

Suddenly (and I do mean suddenly) started working again.

I have no explanation. It was giving the same error message, I turned off one PM-specific module, it failed differently, turned it back on, tested again, got the message above again, checked the PHP, read a post from a user about it, he mentioned it still not working for him, out of habit, checked the PM box, found his that he thought hadn't arrived, responded in the QR box, and boom, it's working again.

I'm now wondering if there's a hidden cron job that rebuilds/repairs the database.
Reply With Quote
  #10  
Old 01-28-2014, 03:20 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad to hear it is working again, but you are probably going to run into more issues at some point due to the PHP and vB version.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:25 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.05407 seconds
  • Memory Usage 2,241KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete