这个错误是什么意思? PDOException:SQLSTATE [23000]:完整性约束违规 [英] What does this error mean? PDOException: SQLSTATE[23000]: Integrity constraint violation
本文介绍了这个错误是什么意思? PDOException:SQLSTATE [23000]:完整性约束违规的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I'm很失望在这里,我有这样的Drupal 7的生产现场和出蓝色的,我在任何的管理页面,我到得到这个错误(日志):
是什么意思
I´m pretty desperate here, I have this Drupal 7 production site and out of the blue, I get this error (at the logs) at whatever admin page I get into: What does this mean?
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).
我已停用统计模块,它仍然在...
I´ve deactivated statistics modules, and it is still there...
任何想法将不胜感激!
推荐答案
检查您的主键。您尝试使用重复的主键插入数据集,但数组中未给出密钥25309582。
Check your primary keys. You try to insert a dataset with a duplicate primary key but the key 25309582 is not given in the array.
这篇关于这个错误是什么意思? PDOException:SQLSTATE [23000]:完整性约束违规的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文