Can't save node after d10.2 update

Created on 30 December 2023, 11 months ago
Updated 30 March 2024, 8 months ago

Problem/Motivation

Any entity containing a Plupload Widget form element triggers some browser console errors when uploading files, and an "Internal Server Error" when saving the form afterwards.

This is due to this change in Drupal Core -> https://www.drupal.org/node/3363700

Steps to reproduce

- On a clean Drupal 10.1, install plupload widget and friends
- Set "Plupload widget" in Manage Form Display for any File or Image field for a specific content type.
- Create a node of that type, select an image or field and save the node, no errors.
- Repeat on a clean Drupal 10.2
- When saving the node, the following error appears:

The website encountered an unexpected error. Try again later.

TypeError: array_unshift(): Argument #1 ($array) must be of type array, null given in array_unshift() (line 48 of core/modules/file/src/Validation/FileValidator.php).

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇪🇸Spain budalokko Girona

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