Error message embedding H5P

I have added H5P as an activity and used the embedding code to embed H5P in the course text, but I keep getting this error message. 

Invalid parameter - Invalid parameter value detected.

I am using Moodle 3.5.2+ and the theme Edwiser RemUI.

Any suggestions on how to fix this?

Attachments: 
BV52's picture

Hi Rene,

In order to give your bug report the best chance of getting answered, please include the following information:

  1. Detailed steps to reproduce the bug (exactly how and when did it happen)
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle.
  3. Mobile or Desktop
  4. Browser: Chrome, Firefox, Safari etc
  5. H5P plugin version
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  7. Any browser console errors
  8. Any PHP errors
  9. Screenshots if it's a visual problem

The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!

-BV52

Hi,

1. I followed the steps in this video:

https://h5p.org/documentation/for-authors/h5p-for-moodle 

2. Moodle 3.5.2+ and the theme Edwiser RemUI

3. Desktop

4. Chrome browser

5. Using H5P 1.1

6. The content is an interactive video. The video is uploaded to H5P directly on the Moodle site.

7. No

8. Not that i know of

9. Se attachment

Attachments: 
BV52's picture

Hi Rene,

Can you please try disabling the theme just to isolate the issue. Can you also turn on the debugging for Moodle to check for additional errors.

-BV52

Hi,

When I turned on the debugging mode for Moodle I got this information:

Missing required key in single structure: year

Error 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 tried different themes, and got the same error message.

BV52's picture

Hi Rene,

From the error message there are some configurations that needs to be changed. Below are some documentation that may shed some light on this:

https://h5p.org/documentation/troubleshooting-php

https://docs.moodle.org/dev/External_functions_API

https://docs.moodle.org/dev/Communication_Between_Components

-BV52