The "file_validate_extensions" plugin does not exist

Created on 27 December 2024, about 2 months ago

Problem/Motivation

When adding an icon to the paragraph, the folowing error occurs and blocks the upload:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "file_validate_extensions" plugin does not exist. Valid plugin IDs for Drupal\Core\Validation\ConstraintManager are: ...

Steps to reproduce

Install a module on the core 11.1, create a paragraph type and try to upload an image to the Paragraph icon field

Proposed resolution

The function is deprecated in Drupal 11: https://api.drupal.org/api/drupal/core%21modules%21file%21file.module/fu...
Need to use the 'file.validator' service instead https://www.drupal.org/node/3363700

Patch that fixes the deprecation error is attached.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.3

Component

Code

Created by

🇫🇮Finland YevKo Espoo

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

Comments & Activities

Production build 0.71.5 2024