Undefined array key "formatter_settings" (part 2)

Created on 3 March 2025, about 1 month ago

Coming from my comments in ๐Ÿ› Warning: Undefined array key "formatter_settings" in Drupal\custom_field\Plugin\Field\FieldFormatter\BaseFormatter->calculateDependencies() Active .

To reproduce:

  • custom field has to be file
  • manage display: use the table formatter
  • set file format to 'file_url_plain' (URL to file)
  • create new node, upload a file
  • node/x which will crash: Undefined array key "formatter_settings" in Drupal\custom_field\Plugin\Field\FieldFormatter\BaseFormatter->getFormattedValues() (line 463 of /home/drupal/modules/custom_field/src/Plugin/Field/FieldFormatter/BaseFormatter.php

The trouble is here: https://git.drupalcode.org/project/custom_field/-/blob/3.1.x/src/Plugin/...

$settings[$name] doesn't contain 'formatter_settings' for file.

Patch upcoming

๐Ÿ› Bug report
Status

Active

Version

3.1

Component

Code

Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium swentel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024