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 we run into a field formatter that does not have settings associated with it we get the following error.
( ! ) Fatal error: Unsupported operand types in .../simple_field_formatter/simple_field_formatter.module on line 9
Example field formatter without settings http://drupalcode.org/project/date.git/blob/refs/heads/7.x-2.x:/date.fie...
To prevent this type of error we should make sure the settings array exists before attempting to append to it.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2243487-0--simple_field_formatter--missing-formatter-settings-array.patch | 685 bytes | grndlvl |
Comments
Comment #1
grndlvl CreditAttribution: grndlvl commentedAdding patch
Comment #3
TechNikh CreditAttribution: TechNikh commented