Error Updating Library Content

Created on 25 July 2022, almost 2 years ago
Updated 14 November 2023, 8 months ago

I thought this may be a duplicate of https://www.drupal.org/project/h5p/issues/3199600 β†’ but I tried the patch there and it did not help. It's not quite the same context or error, but they are both about upgrading.

Problem/Motivation

When I try to upgrade existing content from /admin/content/h5p, I get this error:

Error: Attempt to assign property "skipped" on array in Drupal\h5p\Controller\H5PContentUpgrade->upgrade() (line 145 of /opt/www/html/[site address]/web/modules/contrib/h5p/src/Controller/H5PContentUpgrade.php).

This blocks being able to edit older content, since it wants to first upgrade the library version of the content, but can't upgrade the library version of the content without an error.

Steps to reproduce

When content needs upgraded - in my most recent example it was Interactive Book but I have encountered the same in production for other libraries:

1. Go to /admin/content/h5p
2. Click the green upgrade button beside the content to be upgraded
3. Approve the version number to upgrade to
4. Error appears

I am on PHP 8.0.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada ryanrobinson_wlu

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.

Production build 0.69.0 2024