Closed (outdated)
Project:
Field collection
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2012 at 21:31 UTC
Updated:
14 Nov 2016 at 19:52 UTC
Jump to comment: Most recent
Comments
Comment #1
kmare commentedHello,
with the latest dev from 2012-Jan-11, I was getting that error too. cntlscrut, using your patch, nothing really changed as I'm still getting the very same error. Any ways I could help to track that error down?
Thank you in advance.
Comment #2
Michael-IDA commentedVersion : 7.x-1.0-beta3
After patch:
Really looks like it's an SQL bug, not the function name being wrong.
Pretty much messes up /admin/reports/updates as well. "$ drush pm-update" seems okay though.
Best,
Sam
Comment #3
tim.plunkettA patch would be nice. I think we might need to write a new 7001 function that does the same as 7000 but only if that one wasn't run.
Comment #4
jantoine commentedThis error is not due to the update function being named incorrectly, although that is a bug and should be fixed!
This error is occurring because before the update function is run, Drupal has already recognized that the Field Collection module has a new permission 'administer field collections' and has assigned that permission to the administrator role! If the update function is run after this takes place, the update attempts to create a duplicate entry for the administrator role and this new permission. This update fails because the primary key consists of the rid and permission fields.
I think a proper solution could be to delete any permissions associated with the administrator role before running this update query.
Comment #5
_redfog commentedI confirmed by unchecking administrator's permissions for field collection module, then apply update, worked for me.
See #4
Comment #6
jmuzz commented