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
Comment #1
tim.plunkettPesky clients, why do they always have to find bugs?
The same exact line appears in field_collection, but within an
ifstatement, so I will look into why my code turned out different.Comment #2
tim.plunkettAlright, 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.
Comment #3
tim.plunkettThis patch depends on #1232784: Separate links from field_collection_field_formatter_view() for re-use.
Comment #4
afeijolooking good
Comment #5
tim.plunketthttp://drupalcode.org/project/field_collection_table.git/commit/2f09ce8