vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > Bugs & Issues > Bugs From 2.0.0

Reply
 
Thread Tools Display Modes
  #1  
Old 10-25-2005, 10:23 AM
Sickboy Sickboy is offline
Junior Member
 
Join Date: Mar 2005
Posts: 6
Default Error after upgrading mysql from 5.0.x to 5.015 final

Problem only arrises in the vbadvanced pages, not in the forums themselves, and ONLY when the NEWS module is enabled AND the news thread icons are enabled. If I disable them, the problem is gone (Logical ofcoarse, cause the error is about them )
Database error in vBulletin 3.5.0:

Invalid SQL:

SELECT IF(votenum >= 1, votenum, 0) AS numbvote, IF(votenum >= 1 AND votenum != 0, votetotal / votenum, 0) AS voteavg,
thread.threadid, post.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, thread.lastposter, thread.lastpost, IF(views<=thread.replycount, thread.replycount+1, views) AS views, thread.forumid, post.postid, pagetext, allowsmilie, forum.title AS forumtitle

,thread.iconid AS threadiconid, iconpath AS threadiconpath

, NOT ISNULL(subscribethread.subscribethreadid) AS subscribed
FROM thread AS thread
LEFT JOIN forum AS forum USING (forumid)
LEFT JOIN post AS post ON (post.postid = thread.firstpostid)
LEFT JOIN icon USING (iconid)



LEFT JOIN subscribethread AS subscribethread ON (subscribethread.threadid = thread.threadid AND subscribethread.userid = '1')
LEFT JOIN deletionlog AS deletionlog ON (thread.threadid = deletionlog.primaryid AND type = 'thread')
WHERE thread.threadid IN(1111,1091,1081,1070,1065,1058)

GROUP BY post.postid
ORDER BY postdateline DESC
LIMIT 6;

MySQL Error : Column 'iconid' in from clause is ambiguous
Error Number : 1052
Date : Tuesday, October 25th 2005 @ 04:19:12 PM
Script : http://xxx.xxxxx.xx/default.php
Referrer :
IP Address : xx.xxx.xxx.xxx
Username : Sickboy
Classname : vB_Database_MySQLi

Last edited by Sickboy; 10-25-2005 at 10:40 AM.
Reply With Quote
  #2  
Old 10-26-2005, 06:02 PM
Ralf vd Enden Ralf vd Enden is offline
Junior Member
 
Join Date: Mar 2004
Posts: 7
Default Re: Error after upgrading mysql from 5.0.x to 5.015 final

In modules/latesttopics.php and modules/news.php find the following:
Code:
LEFT JOIN ' . TABLE_PREFIX . 'icon USING (iconid)
and replace it with:

Code:
LEFT JOIN ' . TABLE_PREFIX . 'icon AS icon ON (icon.iconid = thread.iconid)
It should work as expected again after that.

Regards,
Ralf
Reply With Quote
  #3  
Old 10-27-2005, 02:06 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Error after upgrading mysql from 5.0.x to 5.015 final

I wouldn't *think* that changing that would have anything to do with the error. If it does help though please let me know.
Reply With Quote
  #4  
Old 10-28-2005, 03:06 AM
Sickboy Sickboy is offline
Junior Member
 
Join Date: Mar 2005
Posts: 6
Lightbulb Re: Error after upgrading mysql from 5.0.x to 5.015 final

Ralf... major thanks!!
Works perfectly.

Thanks again.
Reply With Quote
  #5  
Old 10-28-2005, 03:59 AM
Zachery's Avatar
Zachery Zachery is offline
Super Moderator
 
Join Date: Jan 2004
Posts: 3,157
Default Re: Error after upgrading mysql from 5.0.x to 5.015 final

Try disabling strict mode if you continue having problems.
__________________
Zachery
vBadvanced Support & SysAdmin

Reply With Quote
  #6  
Old 10-28-2005, 04:32 AM
Sickboy Sickboy is offline
Junior Member
 
Join Date: Mar 2005
Posts: 6
Default Re: Error after upgrading mysql from 5.0.x to 5.015 final

Quote:
Originally Posted by Zachery
Try disabling strict mode if you continue having problems.
Ofcoarse I already tried that before contacting you guys here on the forums

The solution above worked for me, I only came to find out that I either need new thread icons or leave em disabled; it's nicer for now
Reply With Quote
  #7  
Old 10-28-2005, 10:59 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Error after upgrading mysql from 5.0.x to 5.015 final

*Moves to bugs forum to make sure this is changed in the next version.*
Reply With Quote
  #8  
Old 01-19-2006, 11:59 PM
Torqued Torqued is offline
Senior Member
 
Join Date: Oct 2004
Posts: 122
Default Re: Error after upgrading mysql from 5.0.x to 5.015 final

Ok. I tried the fix above as well as disabling strict mode and I am still getting the error. This is on a "virgin" new install of vB 3.5.3 and vBA CMPS 2.0.0.

Any other ideas?
Reply With Quote
  #9  
Old 01-20-2006, 12:06 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Error after upgrading mysql from 5.0.x to 5.015 final

Did you apply the changes to your news.php and latesttopics.php files?
Reply With Quote
  #10  
Old 01-20-2006, 08:08 AM
Torqued Torqued is offline
Senior Member
 
Join Date: Oct 2004
Posts: 122
Default Re: Error after upgrading mysql from 5.0.x to 5.015 final

bah! had a stray character in news.php. it's working now. thanks!
Reply With Quote
  #11  
Old 04-13-2007, 09:57 AM
pg116 pg116 is offline
Member
 
Join Date: Sep 2004
Posts: 36
Default Re: Error after upgrading mysql from 5.0.x to 5.015 final

Quote:
Originally Posted by Ralf vd Enden View Post
In modules/latesttopics.php and modules/news.php find the following:
Code:
LEFT JOIN ' . TABLE_PREFIX . 'icon USING (iconid)
and replace it with:

Code:
LEFT JOIN ' . TABLE_PREFIX . 'icon AS icon ON (icon.iconid = thread.iconid)
It should work as expected again after that.

Regards,
Ralf
That worked great for me!

Thanks!
Reply With Quote
  #12  
Old 05-08-2009, 05:17 PM
Samir Samir is offline
Huntsville Car Scene.com
 
Join Date: Sep 2004
Location: HSV
Posts: 276
Default

I hate to bump an old thread, but I just disabled the News Icon and it worked for me. I'll change the code later. I'm just happy to see it working again since I'm running older versions of vb and the cmps on mysql 5.
Reply With Quote
Reply


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
MySQL error Wrestling-Freek Troubleshooting / "How do I..." Questions 10 04-19-2005 01:16 PM
MYSQL Error laeth Troubleshooting / "How do I..." Questions 4 04-18-2005 08:11 PM


All times are GMT -4. The time now is 02:37 AM.

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.