H5P Editing broken after update to h5p-editor 1.25

Created on 5 January 2024, over 1 year ago

Problem/Motivation

I am using the DEV version of H5P because that's the only way to get it working on Drupal 10 right now, specifically, 2.0.x-dev@dev.

With a site recent composer update, I noted that the h5p/h5p-editor component got update to v 1.25.

Since then, I am unable to edit or create H5P at all since the module cannot locate the libraries...

Digging deeper, I note...

Error: Call to undefined method H5PCore::libraryToFolderName() in H5peditor->mergeLocalLibsIntoCachedLibs() (line 628 of <site>\vendor\h5p\h5p-editor\h5peditor.class.php).


...\vendor\h5p\h5p-editor\h5peditor.class.php(543): H5peditor->mergeLocalLibsIntoCachedLibs(Array, Array)
#1 ...\vendor\h5p\h5p-editor\h5peditor-ajax.class.php(495): H5peditor->getLatestGlobalLibrariesData()
#2 ...\vendor\h5p\h5p-editor\h5peditor-ajax.class.php(116): H5PEditorAjax->getContentTypeCache(false)
#3 ...\modules\contrib\h5p\modules\h5peditor\src\Controller\H5PEditorAJAXController.php(27): H5PEditorAjax->action('content-type-ca...')
#4 [internal function]: Drupal\h5peditor\Controller\H5PEditorAJAXController->contentTypeCacheCallback()

Can anyone please confirm this as a bug and suggest the best way to remedy it.

Is it possible that the update of the h5p\h5p-editor package should have been accompanied by a update to the h5p-core ?

Thanks

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom SirClickALot Somerset

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

Comments & Activities

Production build 0.71.5 2024