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'

CommentFileSizeAuthor
#4 2513878.patch572 bytesneerajskydiver
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ram4nd’s picture

Status: Needs work » Closed (cannot reproduce)

I don't think the issue was with this module.

egontinno’s picture

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

ram4nd’s picture

Status: Closed (cannot reproduce) » Active

You had to delete the row manually. But it should be implemented into the update hook.

neerajskydiver’s picture

FileSize
572 bytes

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

neerajskydiver’s picture

Status: Active » Needs review
egontinno’s picture

Suggestion #3 fixed my problem. Thank you!