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.
When the item is empty ('fid' = 0) and arrives to the formatter function, it first tries to load the default and then it formats it. However, there might no default as well and it tries to format it anyway generating, for instance, and empty img referece.
Same applies to imagecache, I will place the same patch for it on the project's issues.
Comment | File | Size | Author |
---|---|---|---|
imagefield.module.patch | 520 bytes | hanoii |
Comments
Comment #1
hanoiiRelated to same bug in imagecache #260669: Imagecache field formatter is generating broken output when no actual image (or default) is available.
Comment #2
hanoiiI have modified the patch on the imagecache issue, and I should include the new patch here for imagefield, however, there's another issue in the imagefield queue that's related to this bug but also covers another one which is rather important, so I'll post o patch on that issue that should fix both this one and the one on #310047: Field is not removed from shared content_field_XXX table on delete.