1. If I add a term to a node that already has this term, the DB complains "Duplicate entry '8-21' for key 1 query: INSERT INTO term_node (nid, vid, tid) VALUES (21, 21, 8) in [...]/taxonomy.module on line 699."
2. If used with Drupal-dev, which warns about E_ALL violations, we get a PHP warning about "undefined index: 'term'" (on the '#default_value' => $context['terms'] line).
3. If the taxonomy module is not enabled, we get a PHP error about undefined function taxonomy_get_vocabularies.
Comments
Comment #1
mooffie commented(My typo: It should be "terms".)
Comment #2
infojunkieThanks for your report I'll work on these issues.
Comment #3
infojunkieFixed in both D5 and D6. Thanks!
Comment #5
ayesh commentedUnfortunately, I'm getting the same error when publishing (both published and unpublished nodes at once) node using VBO.
Comment #6
infojunkieThere are 3 errors reported in this issue. Which one(s) are you experiencing?
Comment #7
ayesh commentedFirst one.
I have created a View to display user's own nodes, both published and unpublished ones. If I select any node(s) -- buggy against both already unpublished and published nodes) -- and click on the "Publish" action, I get the exact same error (but line is different)described in #1 error.
user warning: Duplicate entry '15-26' for key 'PRIMARY' query: INSERT INTO term_node (nid, vid, tid) VALUES (26, 26, 15) in /path/to/drupal/modules/taxonomy/taxonomy.module on line 713.I found some other bugs too, I'll open issues with more information as far as I can help. Thank you for developing this great module.
Comment #8
infojunkieAre you using other taxonomy-related modules? For example: #361509: Duplicate entry for taxonomy SQL query
Comment #9
bojanz commentedComment #10
bojanz commentedNo other info provided by the user. Maintainer provided a possible explanation in in #8.
Comment #11
ayesh commentedSorry if I'm mis-categorizing the issue status. But with the latest DEV version, problem seems to be solved.
And for #8's issue mentioned, it was not the problem I think.
Thanks for making VBO even more awesome.