Issues after upgrading moodle and h5p
Hello
I upgraded my moodle instance from Moodle 4.1.14 to Moodle 4.1.19 (Linux) and I've run into a bit of a situation regarding mod_hvp:
I updated the content type cache, as well as all the libraries that i was able to. However, several I wasn't able to update, namely
Course Presentation (1.19.3)
Interactive Book (1.3.1)
Interactive Video (1.19.3)
Interactive Video (1.21.8)
Interactive Video (1.22.4)
Interactive Video (1.24.4)
And all of them fail to update with a variant of the error below.
- An error occurred while processing parameters:
Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://MYMOODLE/pluginfile.php/1/mod_hvp/libraries/H5P.InteractiveBook-...' failed to load.
Also, when i try to load those resources in a course, I get the following errors (only showing Interactive book)
Unable to find constructor for: H5P.InteractiveBook 1.3 H5P.error @ h5p.js?ver=2024091200:989 H5P.newRunnable @ h5p.js?ver=2024091200:908 (anonymous) @ h5p.js?ver=2024091200:137 each @ jquery.js?ver=2024091200:2 each @ jquery.js?ver=2024091200:2 H5P.init @ h5p.js?ver=2024091200:93 (anonymous) @ h5p.js?ver=2024091200:2879 e @ jquery.js?ver=2024091200:2 (anonymous) @ jquery.js?ver=2024091200:2 setTimeout (anonymous) @ jquery.js?ver=2024091200:2 c @ jquery.js?ver=2024091200:2 fireWith @ jquery.js?ver=2024091200:2 fire @ jquery.js?ver=2024091200:2 c @ jquery.js?ver=2024091200:2 fireWith @ jquery.js?ver=2024091200:2 ready @ jquery.js?ver=2024091200:2 B @ jquery.js?ver=2024091200:2Understand this error jquery.js?ver=2024091200:2 jQuery.Deferred exception: Cannot read properties of undefined (reading 'getCopyrights') TypeError: Cannot read properties of undefined (reading 'getCopyrights') at H5P.getCopyrights (https://MYMOODLE/mod/hvp/library/js/h5p.js?ver=2024091200:1139:16)
at HTMLDivElement.<anonymous> (https://MYMOODLE/mod/hvp/library/js/h5p.js?ver=2024091200:174:30) at S.each (https://MYMOODLE/mod/hvp/library/js/jquery.js?ver=2024091200:2:2976)
at S.each (https://MYMOODLE/mod/hvp/library/js/jquery.js?ver=2024091200:2:1454)
at H5P.init (https://MYMOODLE/mod/hvp/library/js/h5p.js?ver=2024091200:93:60)
at HTMLDocument.<anonymous> (https://MYMOODLE/mod/hvp/library/js/h5p.js?ver=2024091200:2879:11)
at e (https://MYMOODLE/mod/hvp/library/js/jquery.js?ver=2024091200:2:30005)
at https://MYMOODLE/mod/hvp/library/js/jquery.js?ver=2024091200:2:30307 undefined
S.Deferred.exceptionHook @ jquery.js?ver=2024091200:2 (anonymous) @ jquery.js?ver=2024091200:2 setTimeout (anonymous) @ jquery.js?ver=2024091200:2 c @ jquery.js?ver=2024091200:2 fireWith @ jquery.js?ver=2024091200:2 fire @ jquery.js?ver=2024091200:2 c @ jquery.js?ver=2024091200:2 fireWith @ jquery.js?ver=2024091200:2 ready @ jquery.js?ver=2024091200:2 B @ jquery.js?ver=2024091200:2Understand this warning first.js:734 Starting Moodle session timeout warning. jquery.js?ver=2024091200:2 Uncaught TypeError: Cannot read properties of undefined (reading 'getCopyrights') at H5P.getCopyrights (h5p.js?ver=2024091200:1139:16) at HTMLDivElement.<anonymous> (h5p.js?ver=2024091200:174:30) at S.each (jquery.js?ver=2024091200:2:2976) at S.each (jquery.js?ver=2024091200:2:1454) at H5P.init (h5p.js?ver=2024091200:93:60) at HTMLDocument.<anonymous> (h5p.js?ver=2024091200:2879:11) at e (jquery.js?ver=2024091200:2:30005) at jquery.js?ver=2024091200:2:30307
Additionally, when I try and creating content, i see the following error as soon as I land on the page
icon.svg:1 GET https://MYMOODLE/pluginfile.php/1/mod_hvp/libraries/H5P.SortParagraphs-0... 404 (Not Found) Image X @ h5p-hub-client.js?ver=2024091200:41 Ko @ h5p-hub-client.js?ver=2024091200:41 cs @ h5p-hub-client.js?ver=2024091200:41 us @ h5p-hub-client.js?ver=2024091200:41 ls @ h5p-hub-client.js?ver=2024091200:41 $l @ h5p-hub-client.js?ver=2024091200:41 Gl @ h5p-hub-client.js?ver=2024091200:41 Rs @ h5p-hub-client.js?ver=2024091200:41 (anonymous) @ h5p-hub-client.js?ver=2024091200:41 ts @ h5p-hub-client.js?ver=2024091200:41 Qs @ h5p-hub-client.js?ver=2024091200:41 t.render @ h5p-hub-client.js?ver=2024091200:41 s @ h5p-hub-client.js?ver=2024091200:54 e @ h5p-hub-client.js?ver=2024091200:54 ns.SelectorHub @ h5peditor-selector-hub.js?ver=2024091200:43 ns.LibrarySelector @ h5peditor-library-selector.js?ver=2024091200:54 (anonymous) @ h5peditor-editor.js?ver=2024091200:204 c @ jquery.js?ver=2024091200:2 fireWith @ jquery.js?ver=2024091200:2 l @ jquery.js?ver=2024091200:2 (anonymous) @ jquery.js?ver=2024091200:2 XMLHttpRequest.send send @ jquery.js?ver=2024091200:2 ajax @ jquery.js?ver=2024091200:2 load @ h5peditor-editor.js?ver=2024091200:193 dispatch @ jquery.js?ver=2024091200:2 S.event.add.v.handle @ jquery.js?ver=2024091200:2Understand this error icon.svg:1 GET https://MYMOODLE/pluginfile.php/1/mod_hvp/libraries/H5P.AppearIn-1.0/ico... 404 (Not Found)
Finally, I can only create some content types, whereas several others show me errors
Content type showing errors while creating:
- Interactive Video
- Course Presentation
- Multiple Choice
- Quiz (question set)
- Fill in the blanks
- drag the words
- Drag and drop
- Dialog Cards
and many more
Errors while loading Multiple Choice
GET https://MYMOODLE/pluginfile.php/1/mod_hvp/libraries/H5PEditor.TableList-... net::ERR_ABORTED 404 (Not Found)
GET https://MYMOODLE/pluginfile.php/1/mod_hvp/libraries/H5PEditor.TableList-... net::ERR_ABORTED 404
GET https://MYMOODLE/pluginfile.php/1/mod_hvp/libraries/H5PEditor.RangeList-... net::ERR_ABORTED 404
GET https://MYMOODLE/pluginfile.php/1/mod_hvp/libraries/H5PEditor.RangeList-... net::ERR_ABORTED 404
I tried rolling back the installation but it didn't help.
Finally, the
Download available H5P content types from h5p.org
\core\task\h5p_get_content_types_task
is failing with a
Scheduled task failed: Download available H5P content types from h5p.org (core\task\h5p_get_content_types_task),array_key_exists(): Argument #2 ($array) must be of type array, null given Backtrace: * line 282 of /h5p/classes/core.php: call to array_key_exists() * line 215 of /h5p/classes/core.php: call to core_h5p\core->fetch_content_type() * line 69 of /lib/classes/task/h5p_get_content_types_task.php: call to core_h5p\core->fetch_latest_content_types() * line 263 of /lib/cronlib.php: call to core\task\h5p_get_content_types_task->execute() * line 167 of /admin/cli/scheduled_task.php: call to cron_run_inner_scheduled_task()
As usual, any help will be much appreciated