Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Performed update "config_perms_update_7201" and got an error.
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry[error]
'administer_account_settings' for key 'name'
Comment | File | Size | Author |
---|---|---|---|
#4 | 2513878.patch | 572 bytes | neerajskydiver |
Comments
Comment #1
ram4nd CreditAttribution: ram4nd as a volunteer commentedI don't think the issue was with this module.
Comment #2
egontinno CreditAttribution: egontinno commentedI got same error after updating this module to version 7.x-2.1 How to fix this?
Update #7202
Failed: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'administer_account_settings' for key 'name': INSERT INTO {config_perms} (machine_name, status, name, path) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( [:db_insert_placeholder_0] => administer_account_settings [:db_insert_placeholder_1] => 1 [:db_insert_placeholder_2] => administer account settings [:db_insert_placeholder_3] => a:1:{i:0;s:28:"admin/config/people/accounts";} ) funktsioonis drupal_write_record() (rida 7316).
Comment #3
ram4nd CreditAttribution: ram4nd as a volunteer commentedYou had to delete the row manually. But it should be implemented into the update hook.
Comment #4
neerajskydiver CreditAttribution: neerajskydiver as a volunteer and at Valuebound commentedJust checked the install file of this module, found an error in the "config_perms_update_7201" function of install file, this is been fixed in this patch.
Comment #5
neerajskydiver CreditAttribution: neerajskydiver as a volunteer and at Valuebound commentedComment #6
egontinno CreditAttribution: egontinno commentedSuggestion #3 fixed my problem. Thank you!