vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Reason for database errors? (https://vborg.vbsupport.ru/showthread.php?t=299225)

Simon Lloyd 06-17-2013 08:04 PM

Reason for database errors?
 
Hi all, i'm getting lots of the below database errors, anyone got a suggestion as to why they hhave started appearing?

Database error in vBulletin 3.8.7:

Invalid SQL:

UPDATE vb_adminutil SET
text = UNIX_TIMESTAMP()
WHERE title = 'datastorelock' AND text < UNIX_TIMESTAMP() - 15;

MySQL Error :
Error Number :
Request Date : Monday, June 17th 2013 @ 09:38:12 PM
Error Date : Monday, June 17th 2013 @ 09:38:12 PM
Script : http://www.mysite.com/forumz/archive...f-86-p-30.html
Referrer :
IP Address : xxx.xx.xxx.xxx
Username :
Classname : vB_Database
MySQL Version :

snakes1100 06-17-2013 08:17 PM

Did you disable any exec functionality from php using disable_functions?

Simon Lloyd 06-17-2013 08:19 PM

No, only thing thats been disabled (AFAIK) is APC caching.

snakes1100 06-17-2013 08:26 PM

Try a repair on the table first, run it a couple times.

Post up the error logs for php, when this is happening as well.

What caching system are you using?

Simon Lloyd 06-17-2013 08:35 PM

Im using filecache, i'll take a look at the logs.

snakes1100 06-17-2013 08:37 PM

Id use memcache or xcache, versus the filecache.

Disable the filecache for now as well in your testing.

Simon Lloyd 06-17-2013 08:51 PM

the system steup im using doesn't support xcache, i'll take a look at memcache, unfortunately im at work so can't ssh, i cant check the logs or change caching!

snakes1100 06-17-2013 08:55 PM

Any system would support xcache, as long as you install it, i assume your not on a vps/dedi?

ForceHSS 06-17-2013 09:29 PM

are you trying to make a new mod if so i can give you site for testing i am not using will install what version u need

Zachery 06-17-2013 09:33 PM

Don't ever repair or optimize a database if you don't have to. Repairs should only be run if the table is actually crashed. Optimize if and only if you've removed large groups of data from an myisam table.

If you run that query yourself, do you get any errors?

Without an error message hard to tell. php might have timed out and killed the query/connection. or MySQL timed out and killed the query, which made php exit and give you an error. But its weird you're not getting an error message.


All times are GMT. The time now is 06:50 AM.

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.01202 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete