Migrate content from mod_hvp to mod_h5pactivity

Administration tools ::: tool_migratehvp2h5p
Maintained by Moodle HQ, Ferran Recio Calderó, Sara Arjona Téllez
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.
Latest release:
1628 sites
898 downloads
28 fans
Current versions available: 2

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.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3

Contributors

Moodle HQ (Lead maintainer)
Ferran Recio Calderó
Sara Arjona Téllez
Please login to view contributors details and/or to contact them

Comments RSS

Показати коментарі
  • Frans Zwijnenberg
    пн 30 лист. 2020 23:31 PM
    I have the same problem as Peter G (16 jul 2020, 15:01) "Error migration hvp activity with id ##" message.
    I'm using Moodle 3.9.3 (build: 20201109).
    Last update libraries H5P 3/nov/2020
    Version HVP: 2020080400
  • Sara Arjona Téllez
    пт 4 груд. 2020 00:05 AM
    Hi Ram!
    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
  • Sara Arjona Téllez
    пт 4 груд. 2020 00:11 AM
    Hi Stuart and Frans!
    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! усміхаюсь
  • Frans Zwijnenberg
    пт 4 груд. 2020 18:24 PM
    Hi Sara:
    Done
  • Dan Jeffries
    ср 30 груд. 2020 17:25 PM
    Hi. We're looking to migrate content from the previous H5P plugin to this new one. However it would appear that the H5P Content Libraries and and Types are missing.

    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
  • Sara Arjona Téllez
    пт 8 січ. 2021 22:13 PM
    Hi 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! усміхаюсь
  • Dan Jeffries
    пт 8 січ. 2021 22:48 PM
    Thanks. So If I do 1 single H5P migration, the whole content library will update? What do I do if I DON'T want to migrate - how do I get the content libraries then? They just don't appear to be there, which wasn't the case with the H5P original plugin.

    Thanks.
  • Sara Arjona Téllez
    пт 8 січ. 2021 23:04 PM
    Hi Dan!
    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 усміхаюсь
  • Cedric Peyronnet
    чт 6 трав. 2021 21:34 PM
    Hi,
    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&section=XXX&return=0&sr=0) - this does not happen in a course where activities were not converted.
    Anybody got the same problem?
    Cp




  • Sara Arjona Téllez
    пн 10 трав. 2021 15:34 PM
    Hi Cedric!
    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 усміхаюсь
  • Khari Kambon
    ср 2 лист. 2022 04:17 AM
    Hello, is there going to be a version of this for 3.11 or 4.0? If so, when can we expect the release of it?
  • Juan Gomez
    вт 31 жовт. 2023 23:33 PM
    Hello Ferran and Sara,

    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.
  • Sara Arjona Téllez
    чт 11 січ. 2024 17:33 PM
    Hola Juan Gomez!
    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! усміхаюсь And my apologies for the late reply!!
  • Michael Milette
    вт 19 лист. 2024 22:46 PM
    Good day, I was wondering, when we can expect to see a version of this useful content migration tool that would be compatible with Moodle 4.5 LTS?
  • Gus Hagelberg
    вт 3 груд. 2024 21:54 PM
    I would also need the plugin for Moodle 4.4. Any plans?
1 2
Please login to post comments