I got this error message in combination with www.drupal.org/project/inline_entity_form.

Trying to get property of non-object in field_collection_field_get_entity() (line 1630 ...)

I don't know what causes this error but due to some reason the field collection entity could not be loaded, resulting in field_collection_item_load() returning false.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mvonfrie’s picture

If field_collection_item_load() returns FALSE log a warning and return.

mvonfrie’s picture

If field_collection_item_load() returns FALSE log a warning and return.

mvonfrie’s picture

Status: Active » Needs review
jmuzz’s picture

This was brought up again #2767325: Trying to get property of non-object field_collection_field_get_entity() .

I'd like to find out how the data could reach this state.

It seems like a serious error and I'm not sure hiding it or moving it to watchdog is a good idea.