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

alanburke’s picture

Priority: Major » Critical

It'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.

alanburke’s picture

Project: Field Collection Table » Field collection

And with some more digging, it seems to be the same with any field_collection widget, when used on a user entity.

alanburke’s picture

Well, 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.

alanburke’s picture

Title: Critical Error when view collection added to a User entity » Critical Error when field collection added to a User entity

Updating title

mrfelton’s picture

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

mrfelton’s picture

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

tim.plunkett’s picture

Status: Active » Postponed (maintainer needs more info)

Is this still occurring? I was never able to reproduce...

senpai’s picture

Priority: Critical » Normal

This no longer appears to be a problem in the latest -dev, so I'm demoting it from 'critical'.

jmuzz’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)