vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Troubleshooting / "How do I..." Questions

 
 
Thread Tools Display Modes
  #1  
Old 03-24-2005, 01:02 AM
CosmicBlend CosmicBlend is offline
Junior Member
 
Join Date: Feb 2004
Posts: 6
Default SQL errors!

When i changed cmps_index.php over to index.php and let my users on it. I get the following errors when users browse it, but when i browse it i dont get an email with the following errors. What can fix this problem?


Invalid SQL:
SELECT
thread.threadid, thread.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, IF(views <= thread.replycount, thread.replycount+1, views) AS views, thread.lastposter, thread.lastpost, pollid

,thread.forumid, forum.title AS forumtitle
, post.pagetext AS preview

FROM thread as thread

LEFT JOIN forum AS forum ON (thread.forumid = forum.forumid)
LEFT JOIN post AS post ON (post.postid = thread.firstpostid)
LEFT JOIN deletionlog AS deletionlog ON (thread.threadid = deletionlog.primaryid AND type = 'thread')

WHERE open <> '10' AND thread.visible = 1 Array AND deletionlog.primaryid IS NULL
ORDER BY thread.dateline DESC
LIMIT 5

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 'Array AND deletionlog.primaryid IS NULL
ORDER BY thread.dateline DESC
LIMI' at line 13

mysql error number: 1064
  #2  
Old 03-24-2005, 01:43 AM
CosmicBlend CosmicBlend is offline
Junior Member
 
Join Date: Feb 2004
Posts: 6
Default Re: SQL errors!

It seems only to happen with select users.. i cant figure this problem out.
  #3  
Old 03-24-2005, 04:42 AM
mr.ciuk mr.ciuk is offline
Junior Member
 
Join Date: Mar 2005
Posts: 6
Default Re: SQL errors!

http://www.vbadvanced.com/forum/showthread.php?t=4936

and problem will be kill !!!!!

Bye bye !!!
  #4  
Old 03-24-2005, 05:01 AM
CosmicBlend CosmicBlend is offline
Junior Member
 
Join Date: Feb 2004
Posts: 6
Default Re: SQL errors!

thanks
  #5  
Old 03-24-2005, 09:34 PM
CosmicBlend CosmicBlend is offline
Junior Member
 
Join Date: Feb 2004
Posts: 6
Default Re: SQL errors!

ok im still having the problem... whats wrong?
  #6  
Old 03-24-2005, 10:27 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: SQL errors!

If you apply the fix posted here it should take care of the problem.
http://www.vbadvanced.com/forum/show...97&postcount=7
  #7  
Old 03-25-2005, 03:08 PM
CosmicBlend CosmicBlend is offline
Junior Member
 
Join Date: Feb 2004
Posts: 6
Default Re: SQL errors!

I did try that fix and some users are getting errors still.. its not constant just select users.
  #8  
Old 03-25-2005, 03:33 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: SQL errors!

Are they getting the exact same error?
  #9  
Old 03-26-2005, 01:22 PM
CosmicBlend CosmicBlend is offline
Junior Member
 
Join Date: Feb 2004
Posts: 6
Default Re: SQL errors!

yeah every user gets the exact same error, but only certain users get it. It doesnt seem to be a specific usergroup either.. just random users.
  #10  
Old 03-26-2005, 11:34 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: SQL errors!

I'm not entirely sure what would be causing that then. If you'd like to submit a support ticket though I'll be glad to take a look.
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Array errors and SQL errors Richard-HH Troubleshooting / "How do I..." Questions 4 11-14-2004 01:49 PM
DB Errors Snowy Troubleshooting & Problems 1 07-31-2004 05:48 PM


All times are GMT -4. The time now is 02:51 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.