Notice: Trying to get property of non-object in field_collection_field_get_entity() (line 1615 of .../sites/all/modules/field_collection/field_collection.module).

I get this notice, if i understand correctly because of references that point to deleted items.

I used feeds module to import a lot of field, i needed multiple goes to get everything right and used the delete option of feeds to delete al the imported ones of previes tries,i think this delete does not correctly delete all the references of the collection fields.

So now I need to remove the wrong ones and keep the correct ones.

Is there a possibility of a function that iterates over all collection fields and tests there sanity?

Maybe a n convenient extra feature for admin only to fix situations as this one or errors occurring after using VBO module.

Comments

apaderno’s picture

Issue tags: -Notice: Trying to get property of non-object in field_collection_field_get_entity()