Causes WSOD when added to a media library widget

Created on 5 December 2024, 13 days ago

Problem/Motivation

The following fatal error is thrown when the third party settings are added to a media field in a form display while extra_field_description module is enabled.

Cannot use object of type Drupal\Core\Render\Markup as array in claro_preprocess_fieldset__media_library_widget() (line 1582 of /core/themes/claro/claro.theme).

Issue is present on default drupal admin themes seven/claro.

Steps to reproduce

  1. Install and enable extra_field_description module
  2. Add a media field to a content type
  3. Enable the media field in the default form display
  4. Modify it's third party settings and hit update. You dont have to enter anything for the extra descriptions
  5. Edit a node of the content type with the media field added above. It will lead to a WSOD

Proposed resolution

The media widget plugin expects the field prefix to be an array, add a special case widget form alter hook of the module to deal with the media library widget plugin.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States hablat

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