Hi, I set up the module on drupal 6.4 as per normal, then created a new vocab for the tags, and then enabled the active_tags and popular widgets, edited an exsisting node, added two new tags, and saved the node, the error message generated is attached. My backend is PostgreSQL.
| Comment | File | Size | Author |
|---|---|---|---|
| active_tags_error.png | 20.87 KB | spydmobile |
Comments
Comment #1
darrenmothersele commentedRight, the SQL needs a tweek there to make it pgsql compatible. Sorry this was only tested on MySQL.
Can you change the SQL query in activetags_popular.module so that line 39 of the file reads thus...
There's just the addition of ", t.tid" between GROUP BY and ORDER BY.
Can you let us know if that fixes the SQL error you are seeing.
Thanks
Comment #2
spydmobile commentedThat appears to have fixed it, Thanks. Would I expect teh next release of the module to contain this fix?
Comment #3
darrenmothersele commentedThanks for confirming this works.
I will commit to CVS and this will go into the next release. Once it's up there I'll set up a 6.x-dev release which will contain this.
Comment #4
Anonymous (not verified) commentedI've got the same issue, however it's working fine on my local machine which has MySQL 5 - looks like my host has MySQL 4.
The first user comment on this page alludes to a work-around but I can't get it working myself:
http://dev.mysql.com/doc/refman/4.1/en/group-by-optimization.html
Would appreciate any help getting this [very cool] feature working!
Comment #5
dragonwize commentedComment #6
dragonwize commentedMarked #406118: MySQL 4 gives GROUP BY error #1111 - Invalid use of group function as duplicate of this.
Comment #7
dragonwize commentedMerging this issue with #325467: Popular tags are not popular & SQL group by issues on pgSQL and MySQL 4 because they both affect the same line and will be easier to fix with one patch.