| |||||||
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 ...
![]() |
|
| | LinkBack | Thread Tools | Display Modes |
|
#1
| ||||
| ||||
|
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
|
|
#2
| ||||
| ||||
|
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.
__________________ Would you like to Link To Us | Support TECH6 by going Premium Know more about me at Vinayaks.com | Follow TECH6 at Twitter |
|
#3
| ||||
| ||||
|
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. |
|
#4
| ||||
| ||||
__________________ Would you like to Link To Us | Support TECH6 by going Premium Know more about me at Vinayaks.com | Follow TECH6 at Twitter |
|
#5
| ||||
| ||||
|
Thanks very much for you help!
|
![]() |
| Bookmarks |
| Tags |
| mysql error |
| Thread Tools | |
| Display Modes | |
| |