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

Reply
 
Thread Tools Display Modes
  #1  
Old 08-29-2004, 02:49 PM
WitchyT WitchyT is offline
 
Join Date: Jan 2002
Location: LA
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database Error when searching individual user's posts

Anyone have an idea how to fix this? I tried searching through this forum for an answer, but no such luck. Thanks.

Code:
Database error in vBulletin 2.3.5:

Invalid SQL: SELECT COUNT(*) AS posts FROM post
     LEFT JOIN thread ON thread.threadid=post.threadid  WHERE post.visible=1 AND   post.threadid= AND  1=1 AND NOT (thread.forumid='8' OR thread.forumid='9' OR thread.forumid='10' OR thread.forumid='12' OR thread.forumid='145' OR thread.forumid='150' OR thread.forumid='13' OR thread.forumid='14' OR thread.forumid='15' OR thread.forumid='151' OR thread.forumid='16' OR thread.forumid='17' OR thread.forumid='18' OR thread.forumid='19' OR thread.forumid='20' OR thread.forumid='21' OR thread.forumid='22' OR thread.forumid='23' OR thread.forumid='24' OR thread.forumid='25' OR thread.forumid='26' OR thread.forumid='27' OR thread.forumid='28' OR thread.forumid='29' OR thread.forumid='144' OR thread.forumid='146' OR thread.forumid='147' OR thread.forumid='157' OR thread.forumid='158' OR thread.forumid='159' OR thread.forumid='160') AND post.userid='44'
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  1=1 AND NOT (thread.forumid='8' OR thread.forumid='9' OR t

mysql error number: 1064

Date: Sunday 29th of August 2004 11:39:51 AM
Script: http://elemental.nexcess.net/search.php?action=showresults&searchid=3444
Referer: 
Repair Report: This type of error cannot be automatically repaired.
Reply With Quote
  #2  
Old 08-29-2004, 03:04 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you installed any modifications?
Reply With Quote
  #3  
Old 08-29-2004, 03:09 PM
WitchyT WitchyT is offline
 
Join Date: Jan 2002
Location: LA
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, the last hack or mod I tried installing, was TECK's vbmicrostats. That didn't work out, so I had to uninstall it.

The only hacks or mods that I installed relating to search.php are the search thread and who posted (view individual posts by user in thread) hacks. They seemed to be working fine. We also transferred (db) to a different host, so I'm not sure if it's moreover relating to our new host. Never had this problem with the old host/vb.
Reply With Quote
  #4  
Old 08-29-2004, 03:13 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
The only hacks or mods that I installed relating to search.php are the search (view individual posts by user in thread) thread and who posted hacks.
Uninstall this and see if it fixes it.
Reply With Quote
  #5  
Old 08-29-2004, 03:17 PM
WitchyT WitchyT is offline
 
Join Date: Jan 2002
Location: LA
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It worked. Thanks! Guess I'll just go about and reinstall those hacks, and see what I did wrong or what not.
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 08:34 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.03352 seconds
  • Memory Usage 2,199KB
  • 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_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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