error in all restored H5P content on Moodle


We are facing an error with all our H5P content on our Moodle site:


More information about this error

×Debug info:
Error code: invalidhvp
$a contents:×Stack trace:
  • line 498 of /lib/setuplib.php: moodle_exception thrown
  • line 331 of /mod/hvp/classes/view_assets.php: call to print_error()
  • line 46 of /mod/hvp/view.php: call to mod_hvp\view_assets->validatecontent()

This error occurs when accessing content that has been restored from our old Moodle site to our new Moodle site. All H5P content restored from a backup is giving this error.

Both our Moodle sites use the exact same code base running Moodle 3.9.7 (20210510) with H5P version 2020061500 on both.

Built on Ubuntu 18.04.7, php 7.2.24.

There are no issues with newly created H5P content.

Any assistance on this issue would be greatly appreciated.

Thank you.

Content types: 
otacke's picture

Hi aconnor!

I don't know what is backed up by moodle, I am just guessing what might cause existing content to not validate while newly created content works: Does the target site hold the same content types in the same versions (major version and minor version) that are installed on the origin site?