Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-12-2009, 02:51 AM
vbem2 vbem2 is offline
 
Join Date: Dec 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Posted on my forum, then MYSQL errors on certain threads!

So, I posted in a thread with two pictures and about a sentence, but VB had some sort of hiccup and the thread and others are now throwing up a mysql error. Here's the error:

Quote:
Database error in vBulletin 3.7.0:

Invalid SQL:

SELECT *
FROM EMgarageVehicle
WHERE EMgarageVehicle.UserID =
AND (Retired = 0
OR Retired IS NULL);

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND (Retired = 0
OR Retired IS NULL)' at line 4
Error Number : 1064
Request Date : Tuesday, August 11th 2009 @ 11:49:11 PM
Error Date : Tuesday, August 11th 2009 @ 11:49:12 PM
Script : http://ecomodder.com/forum/showthread.php?t=8343
Referrer : http://ecomodder.com/forum/showthrea...rror-9614.html
IP Address : 98.110.10.181
Username : SVOboy
Classname : vB_Database
MySQL Version : 5.0.32-Debian_7etch5
Really scratching my head over this one. Thanks!
Reply With Quote
  #2  
Old 08-12-2009, 02:58 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is from a modification. You will need to disable the modification and then post in the modification thread for help as that is where support is given for modifications.
Reply With Quote
  #3  
Old 08-12-2009, 03:28 AM
vbem2 vbem2 is offline
 
Join Date: Dec 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, the query is from code we've added to another part of the site, it can't exactly be disabled since it's not a vb plugin/product.

I'm still unsure why the simple posting would cause it to act up, and also why it would seemingly randomly affect threads.

Do you have any other suggestions from tracking down the problem?

Thanks!

--------------- Added [DATE]1250051454[/DATE] at [TIME]1250051454[/TIME] ---------------

Also, from the error it's sending I can't even tell what file it has a problem with. None of the files changed at that time so I wouldn't know why it would suddenly decide to have an error.
Reply With Quote
  #4  
Old 08-12-2009, 03:47 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If it's from an unrelated part of the site, then it shouldn't be getting triggered when going to the showthread page. It wouldn't hurt to disable your plugins and see if that stops the errors.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

PHP Code:
define('DISABLE_HOOKS'true); 
Is there anything in your error_logs? And what about this hiccup you say vb had - what was that all about?
Reply With Quote
  #5  
Old 08-12-2009, 04:08 AM
vbem2 vbem2 is offline
 
Join Date: Dec 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not finding config.php, where is it?

Also, where do I find the error logs?

The first time I noticed the issue was when I posted two images on a thread, fire fox seemed to spaz out, and I was redirected to the mysql error page.

--------------- Added [DATE]1250054337[/DATE] at [TIME]1250054337[/TIME] ---------------

Figured it out. I deleted a user from the forum, which broke all the queries that involved userid of that user since it no longer existed. Gosh darn.
Reply With Quote
  #6  
Old 08-12-2009, 04:21 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you figured it out.
Reply With Quote
  #7  
Old 08-12-2009, 04:26 AM
vbem2 vbem2 is offline
 
Join Date: Dec 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again, by the way!
Reply With Quote
Reply


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 11:19 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.03706 seconds
  • Memory Usage 2,215KB
  • 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
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_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