Hi Tim - Great module, giving it a good run through.
I'm getting a critical error when trying to view a user profile with Field Collection table used as the formatter.
Recoverable fatal error: Argument 2 passed to field_collection_item_access() must be an instance of FieldCollectionItemEntity, boolean given, called in /.../contrib/field_collection_table/field_collection_table.module on line 76 and defined in field_collection_item_access() (line 488 of /.../sites/all/modules/contrib-dev/field_collection/field_collection.module).
It only happens when using theis formatter, and only on user entities.
The collection has a date field and a select list.
Will continue to test further.
Comments
Comment #1
alanburke commentedIt's a bit quirky and tough to reproduce.
When you edit a user, and make changes to the fiield collection values, then it works fine, and will display fine.
However, if you edit a user, and make NO changes to the field collection values, and then is looses all the data in the field collection.
And then you can produce the error on viewing the profile. Marking critical becuase of the data loss.
Comment #2
alanburke commentedAnd with some more digging, it seems to be the same with any field_collection widget, when used on a user entity.
Comment #3
alanburke commentedWell, you don't get the error on screen as with Field Collection table module, but you do experience data loss.
Using latest Entity Api and latest Field collection from dev.
Comment #4
alanburke commentedUpdating title
Comment #5
mrfelton commentedWonder if this is related to the problem I described in #1539222: Field collection entity not created properly when attached to user profile. I dont see the error that is referenced in this ticket though.
Comment #6
mrfelton commentedIf you guys had the patch from comment #14 in #1281974: Missing bundle property on entity - related to translations applied, try switching to my patch at http://drupal.org/node/1281974#comment-5890170. For me, it was that other patch causing this by assuming that field_collection was attached to a node entity.
Comment #7
tim.plunkettIs this still occurring? I was never able to reproduce...
Comment #8
senpai commentedThis no longer appears to be a problem in the latest -dev, so I'm demoting it from 'critical'.
Comment #9
jmuzz commented