После установки модуля category, начал вылазить такой баг. При добавлении ноды с термином, который уже использовался выдаетс сообщение:
user warning: Duplicate entry '1-35' for key 1 query: INSERT INTO term_node (nid, tid) VALUES (35, 1) in /home/webadmin/hr-portal.ru/html/2/includes/database.mysql.inc on line 172.
Собственно решение тут описано
http://drupal.org/node/69722
The solution
Access your database. Check the affected table. In this case, the error tells us that it is the node table (query: INSERT INTO node). This also happens with other tables, modify these instructions accordingly.
This is the node table, so the problem is the node id (nid). Each node has a unique id. Look at your table, and find the highest node id (nid). If you have many nodes, it may help to sort your table by nid to find the highest one.
Go to your sequences table. Change the node id in the sequences table to a number higher than the id you found in step 2.
Вот что я делаю:
В phpmyadmin захожу в таблицу term_node
затем в nid
Вижу там следующее
Ряды nid
1 11
1 25
1 30
1 33
1 35
Запоминаю, ч то у меня максимально значение 35
Затем иду в таблицу sequences
там иду в ID вижу следующее:
Ряды id
1 24
1 4
2 2
1 34
2 35
1 153
2 1
1 20
Вот теперь я не могу понять, что я тут должен поменять
Добавлено:
Зашел в таблицу секвенс по другому, вижу следующее
name id
users_uid 2
menu_mid 153
vocabulary_vid 24
node_nid 35
node_revisions_vid 35
term_data_tid 34
view_view_vid 4
comments_cid 1
aggregator_category_cid 1
aggregator_feed_fid 2
aggregator_item_iid 20
Я правильно понимаю, что должен значение node_id поменять с 35 на например 36?
Комментарии
Скорее term_data_tid изменить
изменил все таки node_nid 35 на 36
Вроде ошибка пропала