H5P - migrating course backups between Moodles

We are observing issues migrating courses with H5P content from one Moodle site to another. Unless the second Moodle has an equal or greater library ALREADY deployed, the H5P activity fails with the error:

Error code: invalidhvp    (see attached error message)

STEPS TO REPLICATE: 

  1. Backup a Moodle course from a Moodle that contains H5P activities
  2. Restore this on a Moodle that has the same version H5P plugin, but OLDER H5P libraries (ie the /mod/hvp/library_list.php "Update content from library cache" has not been recently triggered).

Further information:

Using version H5P Moodle plugin (1.12 2018110600) and Moodle 3.5.3 (Build: 20181112)

Request:

Is there a setting to auto update H5P libraries, or any other option for ensuring this works? Or can something be developed to enable this error is addressed?

Regards, Bernadette 

Summary: 
Solution for invalidhvp error
0
0
Supporter votes Members of the Supporter Network can vote for feature requests. When the supporter network has generated sufficient funding for the top voted feature request it will normally be implemented and released. More about the H5P Supporter Network
BV52's picture

Hi Bernadette,

I'm sorry the answer to your first 2 questions is no. Libraries are not auto updated since in a lot of cases users of the plugin wants to keep a certain feature or look of an older library compared to the updated one. Furthermore there are some cases that an older feature is being replaced by a new feature and the users may not have the time yet to adjust their contents to the new once hence they are in control when to update the library.

For your last question I think this is a good suggestion. I was thinking that it could work similarly to how the plugin works werein if you have older libraries and uploaded a content with newer libraries it updates the old ones. Thanks a lot for contributing your ideas on how to make H5P better! We’re now working on something called the H5P supporter program allowing the H5P community to vote for and fund the top voted H5P features. Also there are developers in the community who every now and then works on a feature they find interesting or useful.

-BV52

Thanks so much for your prompt response!

H5P is a fabulous product and I wish you all the best with the H5P supporter program.

Bernadette