I just upgraded to 7.x-1.0-beta3 and received the following error when running update.php.

The following updates returned messages
field_collection module
Update #7000

Failed: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '3-administer field collections' for key 'PRIMARY': UPDATE {role_permission} SET permission=:db_update_placeholder_0 WHERE (permission = :db_condition_placeholder_0) ; Array ( [:db_update_placeholder_0] => administer field collections [:db_condition_placeholder_0] => administer field-collections ) in field_collection_update_7000() (line 56 of /var/www-virtual/[domain].com/htdocs/sites/all/modules/field_collection/field_collection.install).

Comments

visuaLatte’s picture

Sounds a little similar to the problem I have, although the error is somewhat different and happens at a different point. I wonder if the Entity API or the Field Collection module need to be updated to align with changes in Drupal 7.12.

usisha’s picture

Assigned: Unassigned » usisha

I have the same problem. Reinstalled the module did not help. While I can not solve the problem.

visuaLatte’s picture

Update: it looks like this is a known issue with the core Entity system (includes/entity.inc). People have been posting this on the Entity Reference module pages. Turns out the issue is (evidently) not a Field Collection issue, but rather an entity system problem. I expect this will be fixed in Drupal core 7.13.

frozenrey’s picture

Thanks for the update. i've been spending many hours to troubleshoot this..

abeger’s picture

Could you please post a link to the Entity issue? Thanks!

jmuzz’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

It seems unlikely this is still an issue. Has anybody seen it lately? Some way to reproduce it would be helpful.

jmuzz’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)