try another color scheme:


Go Back   TECH6.0 > Web Design/Development and SEO > Internet Forum Softwares > vBulletin


Need help with SQL error in vBulletin

This is a discussion on Need help with SQL error in vBulletin within the vBulletin section, part of the Internet Forum Softwares category; First I want to thank you for having this site. I am not the registered owner of vbulletin, nor do ...

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 09-12-2008, 06:02 AM
No Avatar

Learner
 
Join Date: Nov 2008
Posts: 3
rebecah is on a distinguished road
Default Need help with SQL error in vBulletin

First I want to thank you for having this site. I am not the registered owner of vbulletin, nor do I run the site that the error is happening on. So I can't post in vbulletin forums. I am an administrator on the site and want very much to figure out this problem.

The site owner just recently upgraded to the beta version of vbulletin but that still has not resolved the problem. It appears to me from looking through the code that the vbulletin creator negelected to add GROUP BY options needed when ever you use a the SELECT. In looking through several of the php files, I've found this to be the case in many SELECT options.

I'm not very familiar with MySQL but am very familiar with creating databases with Access, and other database programs. I read that this was a problem with MySQL not generating an error for this in the past. Does anyone know if MySQL recently fixed this error? Or is it something else completely?

Any assistance would be very much appreciated.

This is the error I am getting:

Code:
Database error in vBulletin 3.8.0 Beta 2:

Invalid SQL:

            SELECT post.pagetext AS preview,
                thread.threadid, thread.threadid AS postid, thread.title AS threadtitle, thread.iconid AS threadiconid, thread.dateline, thread.forumid,
                thread.sticky, thread.prefixid, thread.taglist, thread.pollid, thread.open, thread.lastpost AS postdateline, thread.visible,
                thread.hiddencount, thread.deletedcount, thread.attach, thread.postusername, thread.forumid,
                
                replycount, IF(views<=replycount, replycount+1, views) AS views,
                thread.lastpost, thread.lastposter, thread.lastpostid
            ,
                deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,
                user.userid AS postuserid
                , NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
                
                , attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid 
            FROM thread AS thread
            LEFT JOIN user AS user ON(user.userid = thread.postuserid)

            LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
            
             LEFT JOIN subscribethread AS subscribethread
                ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 25 AND canview = 1)
            LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
            
            LEFT JOIN attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png')) 
            WHERE thread.threadid IN
        (242, 268, 267, 266, 264);

MySQL Error   : Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Error Number  : 1140
Request Date  : Monday, December 8th 2008 @ 07:17:20 PM
Error Date    : Monday, December 8th 2008 @ 07:17:21 PM
Script        : http://www.sims2valley.com/forum/sea...p?searchid=353
Referrer      : http://www.sims2valley.com/forum/forumdisplay.php?f=11
IP Address    : 24.56.195.143
Username      : rebecah
Classname     : vB_Database
MySQL Version : 5.0.45-log
Reply With Quote
  #2  
Old 09-12-2008, 11:36 AM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

hi rebecah,

Definitely there are chances that its a bug and that is what a BETA is.

The first thing I'd recommend is to update vbulletin to latest which is 3.8 RC1, you're using Beta 2 which is 3 versions old.

I have tested RC1 release and it works all good. So, if you still face the error, it has something to do with your mods, in that case try disabling the plugin manager from config.php. Though I feel upgrading should solve your problem.
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #3  
Old 09-12-2008, 06:41 PM
No Avatar

Learner
 
Join Date: Nov 2008
Posts: 3
rebecah is on a distinguished road
Default

Thanks webwizzy for your fast response!

The problem existed before we updated to the beta version. I will ask him why he didn't update to the latest beta though.

He does feel it has something to do with the downloadsii mod, but it is a mod that we need.

Thanks again for your help.
Reply With Quote
  #4  
Old 09-12-2008, 10:17 PM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

I will ask him why he didn't update to the latest beta though.
The latest 3.8 isn't BETA anymore. Its Release Candidate (RC) which means its close to be stable now and is highly recommended.

He does feel it has something to do with the downloadsii mod, but it is a mod that we need.
There is a full probability that it isn't compatible with vb 3.8. Better reading the official mod's thread at vb.org. btw, there's no harm in disabling it for a while and seeing the effect.
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #5  
Old 10-12-2008, 03:09 AM
No Avatar

Learner
 
Join Date: Nov 2008
Posts: 3
rebecah is on a distinguished road
Default

Thanks very much for you help!
Reply With Quote
Reply

Bookmarks

Tags
mysql error


Thread Tools
Display Modes




All times are GMT +5.5. The time now is 01:32 AM.

Contact Us - Tech6.com - Link to Us - Advertise - Submit Site - Privacy Statement - TOS - Top