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.
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).
Comment | File | Size | Author |
---|---|---|---|
#3 | file_entity-warning_uasort_fix_4_file_view_multiple-2643122-3.patch | 622 bytes | aDarkling |
|
Comments
Comment #2
aDarkling CreditAttribution: aDarkling as a volunteer commentedComment #3
aDarkling CreditAttribution: aDarkling as a volunteer commentedHuh. I already had git pulled & ready to go on this module. Here y'go!
Comment #4
froboyRan into this issue using entity_embed. Patch applies successfully and fixes the problem. I'll call it RTBC.
Comment #7
joseph.olstad