这个错误是什么意思? PDOException:SQLSTATE [23000]:完整性约束违规

时间:2013-03-30 03:17:58

标签: php drupal error-handling

我非常绝望,我有这个Drupal 7制作网站并且突然出现,我得到了这个错误(在日志中)我进入的任何管理页面: 这是什么意思?

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '25309582' for key 'PRIMARY': INSERT INTO {accesslog} (title, path, url, hostname, uid, sid, timer, timestamp) 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); Array ( [:db_insert_placeholder_0] => Comienza a refacturarse el gas desde enero de 2012 sin los subsidios, comenzando por los Countries - Resolución 1993/2011 ENARGAS [:db_insert_placeholder_1] => node/4683 [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => 108.162.219.179 [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => CD06pUUKdnaon6k1zaROEhXUPT9DkfVD7fW4UgyEHAw [:db_insert_placeholder_6] => 997 [:db_insert_placeholder_7] => 1364613253 ) in statistics_exit() (line 93 of /home/liga/public_html/modules/statistics/statistics.module).

我已停用统计模块,它仍在那里......

任何想法都将不胜感激!

1 个答案:

答案 0 :(得分:4)

检查您的主键。您尝试插入具有重复主键的数据集,但数组中未给出键25309582。