Support h5p/h5p-core 1.27 and h5p/h5p-editor 1.25 in H5PDrupal.php

Created on 7 January 2025, 14 days ago

Problem/Motivation

Updating/installing h5p content libraries produce an error like:

Validating h5p package failed.
The system was unable to install the Multiple Choice component from the package, it requires a newer version of the H5P plugin. This site is currently running version 1.24, whereas the required version is 1.27 or higher. You should consider upgrading and then try again.

Proposed resolution

Solution:

  1. Use the dev-2.0.x branch instead of 2.0-alpha
  2. Add the patch included here to your project
  3. Add newer h5p/h5p-editor and h5p/h5p-core libraries to your project

Eg.:

## Step 1: include the patch in this issue in your project's root composer.
Refer to this tutorial on applying patches: https://gorannikolovski.com/blog/how-to-apply-a-patch-in-drupal

## Step 2: Require dev branch:
composer require drupal/h5p:dev-2.0.x

## Step 3: Require newer h5p-core and h5p-editor in your project
composer require h5p/h5p-core:^1.27
composer require h5p/h5p-editor:^1.25

After that you should be able to update/install content types.

💬 Support request
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada ydahi Waterloo, Canada

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