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.
EntityFieldQueryException: Unknown field: field_size_price in EntityFieldQuery->addFieldCondition() (line 765 of /var/www/vhosts/httpdocs/includes/entity.inc).
I also then get an error on views with the collection:
See attached pic
Adding a blank field collection with the same machine name fixes it
Comment | File | Size | Author |
---|---|---|---|
field collection views.png | 29.72 KB | nicxvan |
Comments
Comment #1
Zero4ffect CreditAttribution: Zero4ffect commentedI can confirm this issue.
Work Around:
I had removed all fields from the field collection before I deleted the collection itself so I'm not certain that the above actions are all that needs to be done to stop the error from being thrown on field delete.
Comment #2
jmuzz CreditAttribution: jmuzz commentedThere have been improvements to the behaviour around deleting nested field collections including #2123559: Removing field collection item also removes sibling's nested child content and it should be working in the latest version.
If not, please reopen with detailed steps to reproduce the error.