Closed (fixed)
Project:
Community Tags
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2007 at 11:46 UTC
Updated:
19 Feb 2011 at 12:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
hd commentedI think this is critical, as it would after a while disintegrate a the web site.
Comment #2
raintonr commentedSubscribing. I can confirm this does indeed remove the image gallery tags. Version I tried was:
; $Id: community_tags.info,v 1.1 2007/04/11 12:31:32 unconed Exp $Comment #3
raintonr commentedTraced to the bottom of the
community_tags_taxonomy_node_savefunction.The current code assumes PHP treats $array in the same way Perl treats @array (ie, passes all members of the array as separate arguments). Can't say I've seen this before in PHP.
Upshot of this is that this part of the code always thinks that the free tagging vocabulary ID to use is '1'. VID '1' on our system happens to be images... it's pretty standard install so probably is elsewhere too.
Anyhow, the enclosed patch works here, but is hardly elegant. YMMV.
Comment #4
Anonymous (not verified) commentedPlease correct me, but it seems to me that image galleries do rely on taxonomy to work and community tags has problems playing nice with other vocabularies - see http://drupal.org/node/137421
I think it would be good to have a solution that addresses both problems as they actually seem to be the same problem.
Comment #5
raintonr commentedTrue, the problem I supplied a fix to would not be limited to galleries. It will affect whatever is vocabulary number 1 in your system, which happens to be the galleries for us.
Comment #6
Anonymous (not verified) commentedOK, so just to make sure - your patch should fix the problem with all vocabularies, not just image galleries, right? In that case I will happily test the patch on my system, elegant or not! :-)
Comment #7
raintonr commentedYes indeed... it should prevent this problem, no matter which vocabulary your VID 1 happens to be.
Please use a test system of course!
Comment #8
Anonymous (not verified) commentedWell, I have installed it on my test system and all worked fine and now it is also running on the live system and still fine - seems you have fixed it. This should really be ported into the module! Can we change this to "ready to be committed" or does it need more testing?
Comment #9
bdragon commentedThat's not a safe way of working around the problem.
Instead of doing that, you can make use of the "all args in one array" syntax of db_query, like so.
Comment #10
owahab commentedSeems fine for me.
Comment #11
yngens commented#9 gives:
Comment #12
yngens commented# 3 gives:
Comment #13
yngens commentedpatches are not applicable against versions released on February 19, 2008 - 04:02, however the problem persists. and this is so critical that it prevents using this module, since it makes impossible using other taxonomies.
Comment #14
raintonr commentedI'm sorry... but I found this bug over a year ago so it doesn't surprise me the patch is now out of date.
However, the cause is outlined here so a newer fix should be incredibly simple to implement.
Who is maintaining this code now? Do you want a patch rolled against CVS or something?
Comment #15
macgirvin commentedsubscribe
Comment #16
yngens commentedi had to install earlier versions of the module to apply the patch and now am using it with no problem. so i will not be updating the working version for a while, but really would want the future releases of the module to have this kind of critical problems already solved. thanks
Comment #17
raintonr commentedI've just installed 5.x-1.0-beta1 and this problem persists.
I can see the more secure reasoning behind patch #9 above so have rolled the enclosed against 5.x-1.0-beta1.
Nothing much has changed with the patch aside from the line numbers, can we please have this rolled into CVS?
Comment #18
stamd commentedthanks for the patch! applied is working i see no issues so far, i'll update ticket if i find any
this REALLY needs to be fixed in production this introduced big problems.
Comment #19
geodaniel commentedsubscribing
Comment #20
owahab commentedComment #21
raintonr commentedWhy has the status of this gone back to 'patch needs review'?
Can someone please verify the latest patch so we can get this one rolled in?
Comment #22
ToshoFreny commentedThe patch does rectify the error of removing the other vocab terms. My vocab 1 was called as "NotaCommunityVocab" (FreeTagging) and vocab 2 called "CommunityVocab". Before patch, adding terms to "CommunityVocab" removed the "NotaCommunityVocab" terms. After patch this is not the case. But slightly changing the vocab order .i.e., 1 => CommunityVocab and 2 => NotaCommunityVocab,
Whatever terms that I enter in NotaCommunityVocab get adds to CommunityVocab. Not sure, if this has to be treated as a separate bug or the part of this one. So changing the status to "code needs work". Please do verify my claims and confirm.
Thank you all,
Tosho
Comment #23
nburles commentedI have incorporated this patch (as it currently exists) into the port for Drupal 6 that I created (#236751: Community tags port to 6.x). I'll keep an eye on this thread to see if people think the vocab order change should be a separate bug (or if someone would like to submit a patch for it).
Thanks,
Nathan
Comment #24
dropcube commented@nburles: I think we should continue with this issue in this thread and leave #236751: Community tags port to 6.x for issues related to the porting to 6.x compatibility.
Note that this issue is related with the 5.x branch, which must continue active and maintained.
Comment #25
raintonr commentedRe: #23 Sorry to say that this bug persists in the 6.x version (both dev and beta).
Applying the patch I originally posted in #3 fixes this.
Comment #26
chaps2 commentedFixed by entrigan - community_tags.module version 1.37.2.7.