Moodle Plugins directory: Migrate content from mod_hvp to mod_h5pactivity | Moodle.org

Migrate content from mod_hvp to mod_h5pactivity
Moodle plugin allowing to migrate activities created with the mod_hvp plugin created by Joubel to the new mod_h5pactivity created by Moodle HQ since Moodle 3.9.
How to use this tool
There are two ways to execute the activity migration:
- Web interface: site administration -> Migrate content from mod_hvp to mod_h5pactivity
- CLI via terminal: php admin/tool/migratehvp2h5p/cli/migrate.php --execute
Migrations tool will scan for non migrated hvp activities and will create as many H5P activities as needed.
By default, the CLI method will only migrate up to 100 hvp activities per execution and will keep the originals hvp in the courses. Use the option "--help" to know the CLI params to change this behaviour to increase the migration limit, delete/hide the originals hvp or migration only some hvp activities based on their content-type.
The tool will only migrate each hvp once. In case you need to re-migrate an hvp, just remove or rename the migrated h5p activity, this way the tool won't detect the hvp as migrated.
My apologies for the late reply! :-S
The issue you mentioned isn't related to this migration tool so I suggest you create an issue in Moodle Tracker: https://docs.moodle.org/dev/Tracker_introduction
In order to fix this issue, we need more information, such as replication steps. If you know how to reproduce these errors, could you please create an issue in GitHub tracker: https://github.com/moodlehq/moodle-tool_migratehvp2h5p/issues (preferred option) or share here the details (and I'll create it)? Thanks in advance!
Done
I've run the scheduled task but they're still not there. I also don't know where to get the zip file, and ideally I'd rather it was from the scheduled task.
Can anyone advise on what I might be doing wrong?
Thanks - Dan
When using this migration tool, the required content-types will be installed automatically (so you don't need to run the scheduled task because the H5P activities will be created and displayed as expected without it).
If you know how to reproduce the error you're facing, could you please create an issue in GitHub tracker: https://github.com/moodlehq/moodle-tool_migratehvp2h5p/issues (preferred option) or share here the details (and I'll create it)? Thanks in advance!
Thanks.
If you migrate a single H5P activity, only the content type libraries required for this activity will be "installed" into core using the same versions they had in the mod_hvp activity. You'll be able to see these libraries accessing to "Site administration / H5P / Manage H5P content types" (these are the content-types used for all the H5P features included in core, such as the new H5P activity). From this admin page, you can remove content-type libraries and also upload manually them. When the scheduled task is run, these libraries are downloaded and upgraded automatically (and will magically appear here); otherwise, only libraries uploaded manually by admins or migrated from mod_hvp will be displayed into the "Manage H5P content types" page (/h5p/libraries.php).
I hope this answers your questions
A question before using the Bug tracker.
mod_h5pactivity - 2020061500
mod_hvp -1.22.2 - 2021043000
tool_migratehvp2h5p - 0.1.4 - 2021020400
Moodle 3.9.1 (Build: 20200713)
There are no errors while the conversion process is running.
But there are some problems in the course where the activies where located - whatever option is used in the 'Should these contents be added to the content bank?' selector - when clicking on a converted activity I got o blank page (mod/h5pactivity/view.php?id=XXX). By the way, when trying to add a new activity I get now the same problem - blank page (/modedit.php?add=h5pactivity&type=&course=XXX§ion=XXX&return=0&sr=0) - this does not happen in a course where activities were not converted.
Anybody got the same problem?
Cp
I suggest you report this in the H5P forum (https://moodle.org/mod/forum/view.php?id=8603) to check if there are more people facing this
I want to thank you in advance for this functionality. My questions would be if this solution will have future upgrades for newer versions like 4.2 and so on.
Thank you.
We've just released a new version, v0.1.6, which supports all Moodle version. However, the previous version (0.1.5) was also working properly in all the existing versions from 3.9 because the only changes applied to the new version are:
- Move from master to main (#51)
- Bump GHA environments
I hope it helps!