After updating to the security release for Revisioning from last week, users are reporting the following error messages after deleting archived revisions:

Notice: Trying to get property of non-object in field_collection_field_get_entity() (line 1610 of /var/www/vhosts/example.com/htdocs/sites/all/modules/field_collection/field_collection.module).

This did not happen with the previous version of Revisioning we were running (7.x-1.4+4-dev), so I'm thinking it's a change in the way that Revisioning is handling the deleting the archived revisions, however it may be the way Field Collections handles content versioning. The version of Field Collections that we are running is 7.x-1.0-beta5+8-dev (the same issue applies on the recommended release, 7.x-1.0-beta5 but happens on line 1589 instead).

To replicate the issue:
- create a content type that includes a field collection.
- create a node with some content, including the field collection.
- edit the node to generate a new version (which archives the previous content).
- delete the archived revisions
- you should then get the error message when viewing or editing the node.

The node still expects the same number of field collections (in the case of multiple entries for a field collection) however the associated data is gone.

In the interim we have disabled deleting revisions for users, but any suggestions to fix this problem would be greatly appreciated. I am logging a similar issue with Revisioning.

This may be related to Support revisions for field collections (?): https://drupal.org/node/1031010

Cheers,
-Si

Comments

sitiveni’s picture

I know it's been a while since this issue has been created.
Nevertheless just wanna say that we've experience the identical behaviour with version 7.x-1.0-beta7.

ciss’s picture