Closed (won't fix)
Project:
Content Taxonomy
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2008 at 21:26 UTC
Updated:
12 Sep 2011 at 11:57 UTC
Jump to comment: Most recent file
Comments
Comment #1
mh86 commentedyou have to execute node_submit before node_save because in node_submit the terms get added to the field array
Comment #2
Gábor Mayer commenteddon't work for me
$node = node_load(arg(1));
$content = print_r($node, TRUE);
node_save(node_submit($node));
Comment #3
Gábor Mayer commented_Checkboxes/Radios_ !!!
Comment #4
Gábor Mayer commentedComment #5
mh86 commentedseems there is a problem when trying to save the nodes manually.
the problem only occurs when saving the field in the cck way (or both).
I took a quick look into to code an tried to fix it. I attached the patch. Try it out, but I'm not absolutely sure if this can have any other sideeffects.
Comment #6
dafederI was having the exact same problem. Neither node_submit nor this patch seemed to make a difference. For now, just switching to tag saving works for me.
Comment #7
socialnicheguru commentedI am having the same issue. It is very frustrating. I am going to test out this patch.
Chris
Comment #8
miweb commentedSame problem for me (saving both, freetagging).
Trying to add a content in my content-taxononmy-fields (three different textfields for three different vocabluarys): only the content of the first field is added to my vocabluary an printed out in the node. The second and third field seems not to work. However this occurs after around 15 or 20 nodes. Everything works fine before.
And it works when the tag has already been added in the vocabulary! Unfortunately there a many new terms to add publishing new nodes.
And all my added tags disappear (at least they are not shown in the node) after changing some fields or workflows for this content type.
Is there somebody who knows why this error occurs and how to fix this? Step by step for a noob like me, please?
Comment #9
noomz commentedI have this issue too. And this patch is not work.
Comment #10
noomz commentedI found that structure of content_taxonomy from node_load is differ when you insert it back.
If you want to insert this
just use this
Comment #11
phdhiren commentedI'm having similar problem, patch in #5 not works for me. :(
Comment #12
plan9 commentedSubscribing
Comment #13
sepla commentedSubscribing.
Comment #14
Clément commentedNobody has a working patch for this problem? Thank you.
Comment #15
xjmUnfortunately Drupal 5 is not supported anymore, so this will probably not get fixed unless someone who is using the module in D5 themselves comes up with a fix and shares it.
Comment #16
xjmSimilar issue, but the other way around: #150117: neither in TAG neither in CCK Table.
Other issues related to saving nodes programmatically rather than through the node edit UI (some are from the D6 branch):
#743920: allow programmatic save of node via drupal_execute
#176762: how to programmatically assign to a "save as both" CT field
#354975: Adding values with drupal_execute()
Maybe #754512: If a term is entered into a content tax field, and node created, value saved but field not populated on edit node?
Comment #17
Clément commentedThank you for your responses. I'm using Drupal 6, but apparently the problem is still relevant. I'll look into the links if I find the solution. Again thank you.
Comment #18
Balbo commentedUsing Drupal 6 and having the same problem.
I also use Hierarchical Select.
Comment #19
xjmRe: #17/#18 (and maybe #12/#13 too) -- I'm not sure how it could be the same problem in 6.x? The setting options described in the title don't exist anymore. I'd suggest opening a new issue with a full description of your problem in that case. Be sure to indicate in the new issue how your vocab is configured, how your field is configured, which widget you're using, and whether you're editing the node normally with the node edit form or by some other means.
Comment #20
magnus commentedCleanup of old issues. According to maintainer: "active development is only done for the 6.x branch! 5.x is not supported any more".
Reopen issue if problem still exist in 6.x branch.
Comment #21
noamdanon commentedI have a patch to fix this one on Drupal5, if anyone is interested:
In content_taxonomy.module under content_taxonomy_field() function add the following new case to the code:
I tested it and it solves the problem completely.
See the comment inside the code to understand what it works and what it does.