H5P inside Moodle Book

Hi everybody!

We are using Moodle 3.5 and recently added H5P. 

The H5p activities are created ok, but when we want to embed them in a page of a Moodle Book we get this error: Invalid parameter 

and with debugg on:

Missing required key in single structure: yearError code: invalidparameter* line 315 of /lib/externallib.php: invalid_parameter_exception thrown* line 223 of /lib/externallib.php: call to external_api::validate_parameters()* line 59 of /lib/ajax/service.php: call to external_api::call_external_function() I've read something about the calendar, but we can' t disable it.

Is there another way to solve this? Or do you know any patch for Moodle 3.5 calendar?

Thank you for your help!!!

 

otacke's picture

Hi!

This is probably related to a bug in moodle's calendar, see https://h5p.org/comment/40793#comment-40793

Best,

Oliver 

After upgrading to latest H5P plugin into moodle 3.5, H5P content will not be embedded anymore in moodle books.

Debug message:

Exception - Too few arguments to function page_requirements_manager::js_call_amd(), 1 passed in [dirroot]/mod/hvp/embed.php on line 94 and at least 2 expected

Debug info:
Error code: generalexceptionmessage

Stack trace:

line 1008 of /lib/outputrequirementslib.php: ArgumentCountError thrown
line 94 of /mod/hvp/embed.php: call to page_requirements_manager->js_call_amd()

What to do to solve this?