Closed (fixed)
Project:
Weight
Version:
7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2012 at 07:03 UTC
Updated:
8 May 2012 at 21:40 UTC
Getting the following error message when updating from 7.x-1.0 to RC2:
Update #7205
Failed: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '23' for key 'PRIMARY': INSERT INTO {weight_weights} (entity_id, entity_type, weight) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => 23 [:db_insert_placeholder_1] => node [:db_insert_placeholder_2] => 0 ) in weight_update_7205() (Line 235 weight.install).
Comments
Comment #1
davisbenIs this site multilingual by chance?
Comment #2
sense-designYes, 2 languages installed, German and English but English is not used, default language is German.
Comment #3
pwesthagen commentedI also have the same error when running update.php after upgrading to 7.x-2.0-rc2 but unlike the original poster my site is not multilingual.
Comment #4
davisbenI wasn't able to consistently reproduce this, but it should be fixed now.
Comment #5
sense-designWhat did you change?
Comment #6
davisbenI added a check to see if the table already exists. When upgrading from 7.x-1.x, the schema is installed in 7200 and the weights are migrated in 7202. 7205 was trying to do it again, causing the error.
Comment #7
pwesthagen commented7.x-2.x-dev fixed it form me. Thanks!
Comment #8.0
(not verified) commentedRemoved unneeded path values from error message