Closed (duplicate)
Project:
Category
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2007 at 21:56 UTC
Updated:
7 Apr 2007 at 20:51 UTC
When i try to add a content item to multiple categories housed in different containers, i get the following errors...
user warning: Duplicate entry '1-31' for key 1 query: INSERT INTO term_node (nid, tid) VALUES (31, 1) in /srv/www/htdocs/sandbox/drupal/includes/database.mysqli.inc on line 151.
My setup is simple, i have 2 containers each with a number of categories. I want to create a content item that is a member of any number of categories from each container. So i select 1 category from each container on the content creation page, and i get that error upon submission. Any ideas?
Comments
Comment #1
richardfullmer commentedThe offending code was in the taxonomy.module file starting on line 561
Comment #2
inforeto commentedMarking as duplicate of http://drupal.org/node/115783
There's more reports of "duplicate entry" issues in the queue.
Comment #3
sjh-1 commentedI've just been battling the same issue, and came up with a fix in http://drupal.org/node/87669#comment-225000 The idea of my fix is to make the taxonomy structure to actually include the tid field, rather than instead use the nid field as your fix has it.
Comment #4
bdragon commentedMarking as duplicate of http://drupal.org/node/87669.
Thank you for your report.
--Brandon