Hi!

When Views is showing an image field but there's no image set for that node, the above warning is generated.

The fix is to have file_view_multiple() verify that it was actually passed files (which would also be proper code design).
On line 80 of file_entity.file_api.inc add the following:

  if (empty($files)) {
    return $build;
  }

Sorry, don't have time to generate a patchfile for this. I'm busy tracking down a views-generated SegFault (11).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aDarkling created an issue. See original summary.

aDarkling’s picture

Issue summary: View changes
aDarkling’s picture

Huh. I already had git pulled & ready to go on this module. Here y'go!

froboy’s picture

Status: Active » Reviewed & tested by the community

Ran into this issue using entity_embed. Patch applies successfully and fixes the problem. I'll call it RTBC.

joseph.olstad’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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