Closed (fixed)
Project:
Drupal core
Version:
5.7
Component:
taxonomy.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 May 2008 at 06:22 UTC
Updated:
7 Jun 2008 at 16:12 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
gpk commented{term_data} uses the {sequences} table to keep track of the highest tid. Maybe it has got out of sequence for some reason. I think the value for term_data_tid in {sequences} should be at least the highest tid in {term_data}. See also http://lists.drupal.org/pipermail/support/2008-April/008472.html
This is handled differently in D6+.
Changing status, reset if your problem is not fixed.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.