Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 10-24-2013, 10:43 PM
justicechick justicechick is offline
 
Join Date: Oct 2012
Location: Arkansas
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help with a database error please

When I click on my forum page I get a database error that read.

Database error in vBulletin 4.2.1

Invalid SQL:

SELECT COUNT(post.dateline) AS postcount, post.userid, user.userid,
user.username, user.lastpostid, user.posts, user.usergroupid,
IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid,
NOT ISNULL(customprofilepic.userid) AS haspic, customprofilepic.width, customprofilepic.height
FROM post AS post
LEFT JOIN user AS user ON (post.userid = user.userid)
LEFT JOIN customprofilepic AS customprofilepic ON (customprofilepic.userid = user.userid)


AND user.userid NOT IN (5","6)
WHERE post.dateline > 1382567113
GROUP BY post.userid
ORDER BY postcount DESC
LIMIT 3;

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 '","6)
WHERE post.dateline > 1382567113
GROUP BY post.userid
ORDER BY post' at line 10
Error Number : 1064
Request Date : Thursday, October 24th 2013 @ 05:25:13 PM
Error Date : Thursday, October 24th 2013 @ 05:25:13 PM
Script : http://cafe-flirt.com/forum.php?tabid=11
Referrer : http://cafe-flirt.com/forum.php?tabid=11
IP Address : 68.179.255.156
Username : Babygirl
Classname : vB_Database
MySQL Version : 5.5.23-55

I'm pretty sure that it was a bad modification but I have to knowledge of the syntax if speaks of.

Any help you can give is appreciated . Thanks in advance!
Reply With Quote
  #2  
Old 10-24-2013, 10:47 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would start by disabling your mods one by one, till you no longer see the error, then you will know which mod it is.
Reply With Quote
  #3  
Old 10-24-2013, 11:11 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

at anytime did you edit your functions_databuild.php long shot but need to ask
Reply With Quote
Благодарность от:
justicechick
  #4  
Old 10-24-2013, 11:35 PM
justicechick justicechick is offline
 
Join Date: Oct 2012
Location: Arkansas
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
I would start by disabling your mods one by one, till you no longer see the error, then you will know which mod it is.
Ozzy the first thing I did was to disable them all in my config.php. So they are off and the board is fine as long as they are off it appears. Just cant turn the hooks back on until its fixed....I am gonna re-enable them in config now and do one by one in the admincp now.

Force I didnt intentionally on my own, no but I had accidentally attempted to install this mod https://vborg.vbsupport.ru/showthrea...read+filtering (thinking it was another that I had downloaded earlier) and that was when the problem started so I figure that there are Db changes.

Ughhhh I feel so stupid doing this!

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

Quote:
Originally Posted by ozzy47 View Post
I would start by disabling your mods one by one, till you no longer see the error, then you will know which mod it is.
I removed the suspect modification from my admincp then moved the files off the server so Idk.
Reply With Quote
  #5  
Old 10-24-2013, 11:43 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Stuff happens sometimes, if you find out which mod it is, let us know.
Reply With Quote
  #6  
Old 10-24-2013, 11:50 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That mod https://vborg.vbsupport.ru/showthrea...read+filtering does not have the above info don't seeing it being this one but if removing it helps
Reply With Quote
  #7  
Old 10-25-2013, 12:10 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible you installed it, then uninstalled and the changes to the DB stayed, along with the template modifications?

Mod says it does the following:

DB Changes
Auto-Template
Code Changes
Reply With Quote
  #8  
Old 10-25-2013, 12:13 AM
justicechick justicechick is offline
 
Join Date: Oct 2012
Location: Arkansas
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
That mod https://vborg.vbsupport.ru/showthrea...read+filtering does not have the above info don't seeing it being this one but if removing it helps
Thanks Forcee . The Only other one that I have attempted was https://vborg.vbsupport.ru/showthrea...thread+listing one. I it did nothing at all so I uninstalled it.

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

Quote:
Originally Posted by Max Taxable View Post
Is it possible you installed it, then uninstalled and the changes to the DB stayed, along with the template modifications?

Mod says it does the following:

DB Changes
Auto-Template
Code Changes
Ive been banging around in the database now for four hrs going through tables and things. I dont see it nor do I see the any of the data (AND user.userid NOT IN (5","6)
WHERE post.dateline > 1382567113 (this should identify that post in the table, but then what do I know! LOL) Im just taking a shot in the dark here .
GROUP BY post.userid
ORDER BY postcount DESC
LIMIT 3; Its possible I can miss anything ..
Reply With Quote
  #9  
Old 10-25-2013, 12:19 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did the errors start after you uninstalled the Mod?
Reply With Quote
  #10  
Old 10-25-2013, 01:03 AM
justicechick justicechick is offline
 
Join Date: Oct 2012
Location: Arkansas
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Max Taxable View Post
Did the errors start after you uninstalled the Mod?
I suppose you could say that . It was really weird. I havent had a mod act that way thus far on me. I have had then cause a DB error when I first started doing this but it was bc I uninstalled the server side I think before I did the admincp side. This time everything was fine for a bit after I uninstalled it.

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

This has been resolved. I ended up reloading all the orginal vb files then turning my plugins back on one by one and it is resolved is seems. Thanks for the help.
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 05:26 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.04764 seconds
  • Memory Usage 2,258KB
  • 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
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete