Error when uploading an .h5p file through upload form widget

Created on 22 August 2025, 2 months ago

Problem/Motivation

When uploading an .h5p file through the H5P form widget on Drupal 11, it fails with the error Drupal\Component\Plugin\Exception\PluginNotFoundException: The "file_validate_extensions" plugin does not exist.

Steps to reproduce

  1. Add an Interactive – H5P field to a content type.
  2. Edit that content type and choose "Manage Field Display."
  3. Set the field to display as "H5P Upload."
  4. Create a new node of the content type and use the H5P upload form widget to upload an .h5p file.
  5. Save the node; you should see the above WSOD error.

Proposed resolution

Change H5PLibraryUploadForm.php and H5PUploadWidget.php to follow the example here.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States maya maier

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

Comments & Activities

Production build 0.71.5 2024