Closed (fixed)
Project:
Drupal core
Version:
5.7
Component:
taxonomy.module
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 May 2008 at 05:09 UTC
Updated:
7 Jun 2008 at 22:02 UTC
When I try to add a new term I get the following error.
user warning: Duplicate entry '282' for key 1 query: INSERT INTO term_data (tid, name, description, vid, weight) VALUES (282, 'term1', '', 4, 0) in /path/includes/database.mysql.inc on line 172.
The tid 282 is in another vocublary vid=3 not in vid=4. It sounds it is not checking vid just only tid.
Comments
Comment #1
wisdom commentedThis is already answered at http://drupal.org/comment/reply/262204/855752. I did make mistake to post twice.
The issue seems from my recent data reshuffling. I will try to fix that based on the solution provided which seems sound.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.