Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-12-2011, 10:12 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database error

Hey all, I hope everyone is having a great holiday season.

I am getting some of these lately. Any ideas??

PHP Code:
Database error in vBulletin 4.1.7:  Invalid SQL:              SELECT IF(thread.visible = 2, 1, 0) AS isdeleted,                           NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed, emailupdate, folderid,             post.pagetext AS description,             thread.*                                       FROM vb_thread AS thread                          LEFT JOIN vb_subscribethread AS subscribethread ON (subscribethread.threadid = thread.threadid AND subscribethread.userid =   AND subscribethread.canview = 1)                                       LEFT JOIN vb_post AS post ON(post.postid = thread.firstpostid)                                       WHERE thread.threadid = 2127;  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 subscribethread.canview = 1)                                       LEFT JOIN vb_post AS post ON(post.po' at line 11 Error Number  : 1064 
Thanks,
Richie
Reply With Quote
  #2  
Old 12-12-2011, 10:58 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, it looks like it comes from function fetch_threadinfo() in includes/functions.php, and the problem is that $vbulletin->userinfo['userid'] is blank. But that function is called from a lot of places so I have no idea why it would happen.
Reply With Quote
  #3  
Old 12-12-2011, 11:33 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks much friend.

Yeah, I know it functions.php but I am still trying to figure out why..It happens when members are in cms and sometimes searching.
Reply With Quote
  #4  
Old 12-12-2011, 11:37 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, sorry, I knew that wasn't going to be a lot of help. Maybe someone else will recognize the error.
Reply With Quote
  #5  
Old 12-12-2011, 11:45 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

haha, oh no, I didn't mean it like that. I really appreciate the reply mate. Thanks for trying.
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:31 AM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.