今天我在使用 Drupal 7.22 的网站上遇到了一个大问题。
此问题出现在管理员创建新节点时。
PDOException:SQLSTATE [23000]:违反完整性约束:1062 键“PRIMARY”的重复条目“308”:INSERT INTO {node}(nid、vid、type、language、title、uid、status、created、changed、comment、promote , sticky, tnid, translate) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11, :db_insert_placeholder_12, :db_insert_placeholder_13 ); 数组 ( [:db_insert_placeholder_0] => 308 [:db_insert_placeholder_1] => 308 [:db_insert_placeholder_2] => 事件 [:db_insert_placeholder_3] => fr [:db_insert_placeholder_4] => 测试 [:
我检查了数据库,最后一个节点 id 是 294。
有谁知道如何解决这个问题?
谢谢你的帮助。