Patch https://drupal.org/i/3008292 breaks site and needs to be updated.

Created on 13 June 2024, 6 months ago

Problem/Motivation

The patch "https://drupal.org/i/3008292 - Upload via Media Library field widget does not take all upload validators in account": "etc/patches/drupal/core/3008292-76.patch" is breaking the site when the user tries to add a media entity of type image.

Steps to reproduce

On an installation using the dropsolid_rocketship distribution try to add a media entity of type image (/media/add/image) and the following error will be displayed:
The website encountered an unexpected error. Try again later.

TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, array given in htmlspecialchars() (line 437 of core/lib/Drupal/Component/Utility/Html.php).

Proposed resolution

The patch contains an update that fixes this issue. Replace the local file with the new updated patch.

🐛 Bug report
Status

Active

Version

10.2

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024