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.
If I delete a file when it was used in an entity, then I get this error when viewing the entity:
Warning: array_flip(): Can only flip STRING and INTEGER values! .. DrupalDefaultEntityController->load() (.. 176 .. /var/www/lib/d7_dev/core/includes/entity.inc).
(With ".." I replaced russian text since my system locale us ru_RU.UTF-8)
The reason is that file_entity_field_attach_load()
doesn't expect 'fid' to be empty. Patch is comming.
Comment | File | Size | Author |
---|---|---|---|
#2 | file_entity-2132383-2.patch | 1.4 KB | OnkelTem |
Comments
Comment #1
OnkelTem CreditAttribution: OnkelTem commentedComment #2
OnkelTem CreditAttribution: OnkelTem commentedComment #3
Dave ReidCommitted a modified version to 7.x-2.x.
http://drupalcode.org/project/file_entity.git/commit/e80b223