I have yet to reproduce the steps that created a node in the state that generates this error, but of course the client managed to do it. The error is...

Recoverable fatal error: Argument 2 passed to field_collection_item_access() must be an instance of FieldCollectionItemEntity, boolean given, called in field_collection_table.module on line 95 and defined infield_collection_item_access() (line 488 of field_collection.module).
<code>

I added a !empty($field_collection) to that line to resolve this...

<code>
if ($settings[$op] && !empty($field_collection) && field_collection_item_access($op == 'edit' ? 'update' : $op, $field_collection)) {

Will post more detail when I can reproduce the steps.

Comments

tim.plunkett’s picture

Assigned: Unassigned » tim.plunkett

Pesky clients, why do they always have to find bugs?

The same exact line appears in field_collection, but within an if statement, so I will look into why my code turned out different.

tim.plunkett’s picture

Assigned: tim.plunkett » Unassigned
Status: Active » Needs review
StatusFileSize
new6.97 KB

Alright, this is a bigger change, because I've come to terms with the rigidity of field_collection. But it should encompass a fix for this error.

tim.plunkett’s picture

afeijo’s picture

Status: Needs review » Reviewed & tested by the community

looking good

tim.plunkett’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.