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.
The message 'Theme key "field_formatter_image" not found.' is raised on the edit-page of a node with Image-fields. The error occurs for every image that is uploaded, so 5 images --> 5 messages.
I use plain Bartik.
I'm not sure if this is a image/theme/Bartik issue.
Related issues:
#560780: Add Image Field to image.module
#674108: ThemeManager::theme() does not trigger an error when a theme hook is not found
#487366: Make the variable system more robust
Comment | File | Size | Author |
---|---|---|---|
#4 | 1157398_styles_Theme key field_formatter_image not found.patch | 758 bytes | johnv |
Comments
Comment #1
johnvAfter searching through my code base, this message appears to belong to Styles, calling a non-existent File-theme.
The error shows when editing a node with fields of type Image of File, for every attached Image/File.
In styles\contrib\file_styles\file_styles.theme.inc , the unknown theme is called here:
Comment #2
johnvComment #3
johnvThis error supposedly is already fixed image.module in #560780: Add Image Field to image.module comment #78 from 2009, but these changes in image.module are not in my D7.0-system, nor in the latest D7.4-dev:
Comment #4
johnvError still exists after upgrading to D7.9 and Styles-dev 2011-09-12 .
The HP-comment as shown in #1 (// Defer to Image Styles for the rest.) already says it - the directory Image Styles has disappeared from the module.
Attached patch resolves the issue form me. Not sure if it is the right way.
Comment #5
johnv