Prompt to update content from the H5P field, when using outdated library version

Created on 3 May 2021, over 4 years ago
Updated 6 August 2025, 6 days ago

Problem/Motivation

When H5P Content is using an outdated version of a library (i.e. a newer version exists on the site, and content hasn't been updated yet), attempts to save the content fail almost silently (I think there's a log message, but there's no clear feedback for the user).

Steps to reproduce

Proposed resolution

When showing existing content in the h5p widget, if the user has permissions to update content and the library version is outdated, show a link to update it.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Needs review

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom catch

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States illeace

    I'd love to review this issue, but I'm having a hard time reproducing the scenario. I'm working on fresh local install of D11 and 2.0.0-alpha6. I thought I could upload an .h5p file using an old library from another site I have access to. However, when I do that, Drupal seems to automatically update the H5P interactive to the latest library version. That's cool, but doesn't help me reproduce this issue and test this patch. Any suggestions (other than creating H5Ps and waiting for an actualy library update)?

Production build 0.71.5 2024