Problem/Motivation

Make the module fully compatible to Drupal ^11.2.
It throws the error:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "file_validate_extensions" plugin does not exist.

Steps to reproduce

  1. Download and enable the latest version ^1.3 into a Drupal ^11.2 installation.
  2. Try to import metatags in this form /admin/config/search/metatag/upload.

You will get the error in the form's page and in the reports page:
metatag_import_export drupal 11 error

Proposed resolution

Replace depracated code related to file_validate_extensions function as per this documentation: file_validate and related functions are deprecated and replaced with file.validator service and Constraint plugins

Remaining tasks

Replace deprecated code and make the module fully compatible with Drupal ^11.2 version.

User interface changes

No

API changes

No

Data model changes

No

CommentFileSizeAuthor
metatag_import_export_d11_error.jpg505.22 KBcarma03
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

carma03 created an issue. See original summary.

carma03’s picture

Assigned: carma03 » Unassigned
Status: Active » Needs review

Fixing and merge request done. Moved to Needs Review.

vinodhini.e’s picture

Hi, Steps to Reproduce

Installed the module on Drupal 11.2.3.

While importing a CSV for meta tags, encountered the same issue as mentioned in this issue queue—import failed due to missing file validation plugin for extensions.

After applying Merge #11, the CSV could be uploaded successfully without any errors.

Merge #45 resolves the compatibility issues. Thanks.