Under PHP 7.4 I get this notices:
Notice: Trying to access array offset on value of type null in field_formatter_settings_get_instance_display_settings() (Zeile 34 von /.../sites/all/modules/field_formatter_settings/field_formatter_settings.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3164386-field-formatter-settings-trying-to-access-array-2.patch | 710 bytes | hosisam |
| #3 | 3164386-field-formatter-settings-trying-to-access-array.patch | 721 bytes | samberry |
Comments
Comment #2
danreb commentedQuick FIx, edit line 34 and change it to
$defaults = isset($info['display']['default']['settings']) ? $info['display']['default']['settings'] : 0;Comment #3
samberry commentedI've just created a patch for the last comment. But rather than set to 0 if no value is found, I've set to an empty array.
Comment #4
hosisam commented#3 did not work for me, so I created a new patch for #2.
Comment #5
mohit.bansal623 commentedAs #4 works fine after running test, moving this to Needs Review.
Comment #6
mark.labrecqueDuplicate of https://www.drupal.org/project/field_formatter_settings/issues/3166628
Comment #7
mark.labrecque