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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

OnkelTem’s picture

FileSize
1.45 KB
OnkelTem’s picture

FileSize
1.4 KB
Dave Reid’s picture

Status: Active » Fixed

Committed a modified version to 7.x-2.x.
http://drupalcode.org/project/file_entity.git/commit/e80b223

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.