Hi there,
I have been trying to solve this but with no luck. So here's the problem:
Recoverable fatal error: Argument 2 passed to field_collection_item_access() must be an instance of FieldCollectionItemEntity, string given, called in /sites/all/modules/entity/entity.module on line 553 and defined in field_collection_item_access() (line 765 of /sites/all/modules/field_collection/field_collection.module).
The setup is:
- D 7.20
- Entity API 7.x-1.x-dev
- field_collection 7.x-1.x-dev
- inline_entity_form 7.x-1.x-dev (simple setup with multilpe fields allowed, set to unlimited)
The issue has been mentioned here, but couldn't find it reported: http://drupal.org/node/1919648
I tried all patches for the Entity API module from issue: http://drupal.org/node/1780646 (no luck)
I looked into the code and managed to hide the error by editing line 354 of inline_entity_form.module from
$new_entity = $bundle;
to
$new_entity = new FieldCollectionItemEntity;
Don't have more time today so if we could start looking into that please, that would help. I only installed the dev version of the module to see if that fixed the error, but no luck.
Cheers!
Comments
Comment #1
bojanz commentedAs far as I know, Field Collection has no IEF support (that needs to live in Field Collection).
Marking as duplicate of #1920048: Integrate with Inline Entity Form.
Comment #2
sk2013 commented+1