Problem/Motivation

With Drupal 11.1.8 getting the following error when adding the JSON key file at /admin/tmgmt/translators/manage/google_v3

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

See this issue https://www.drupal.org/node/3363700 where

'#upload_validators' => [
        'file_validate_extensions' => ['json'],
      ],

is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0.

Steps to reproduce

See above.

Proposed resolution

Use

'#upload_validators' => [
        'FileExtension' => ['extensions' => 'json'],
      ],

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kamkejj created an issue. See original summary.

kamkejj’s picture

update attribution

kallado’s picture

Thank you I've been on a really tight schedule I hava a couple of features also pending. I'll see if can make another version ASAP.

kallado’s picture

Status: Active » Reviewed & tested by the community
kallado’s picture

Status: Reviewed & tested by the community » Fixed

Fixed n 1.0.4

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.