Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | field_collection-check-entity-exists-2296473-1.patch | 1.25 KB | mvonfrie |
Comments
Comment #1
mvonfrie CreditAttribution: mvonfrie commentedIf field_collection_item_load() returns FALSE log a warning and return.
Comment #2
mvonfrie CreditAttribution: mvonfrie commentedIf
field_collection_item_load()
returns FALSE log a warning and return.Comment #3
mvonfrie CreditAttribution: mvonfrie commentedComment #4
jmuzz CreditAttribution: jmuzz commentedThis 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.