2013-03-30 149 views
3

我非常絕望在這裏,我有這個Drupal 7生產站點和突然間,我得到這個錯誤(在日誌)在我進入任何管理頁面: 這是什麼意思?這個錯誤是什麼意思? PDOException:SQLSTATE [23000]:完整性約束衝突

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). 

從來就停用統計模塊,它仍然在那裏...

任何想法將不勝感激!

+2

不應該帶有重複鍵的INSERT導致UPDATE而不是錯誤? – Floris

+1

可能重複的[SQLSTATE \ [23000 \]:完整性約束違規:1062重複鍵入'IDX \ _STOCK \ _PRODUCT'的條目'1922-1]](http://stackoverflow.com/questions/10044062/sqlstate23000-integrity -constraint-violation-1062-duplicate-entry-1922-1-f) – Floris

+0

感謝您提供其他問題的鏈接。因爲這是關於Magento,我認爲這可能是關於不同的事情,但正如Kingalione所說,這是一個數據庫問題... – Rosamunda

回答

5

檢查您的主鍵。您嘗試插入帶有重複主鍵的數據集,但未在數組中輸入密鑰25309582。

+0

謝謝!看來已經解決了截斷accesslog表。非常非常感謝你。 – Rosamunda

相關問題