Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-80544

H5P Question Set api-version-unsupported - running 1.25, 1.26 or higher required

XMLWordPrintable

    • MOODLE_403_STABLE
    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-80544-403
    • MDL-80544-main
    • Hide
      1. Login to h5p.org
      2. Upload the packages created in h5p.com (facing the api-version-unsupported error) to the editor in h5p.org
      3. Download the H5P content (using the Reuse button at the bottom of the content).

      The new H5P content downloaded from h5p.org should work (at least for now).

      Show
      Login to h5p.org Upload the packages created in h5p.com (facing the api-version-unsupported error) to the editor in h5p.org Download the H5P content (using the Reuse button at the bottom of the content). The new H5P content downloaded from h5p.org should work (at least for now).
    • Hide
      1. Log in as an admin.
      2. Go to "Site administration > H5P > H5P settings".
      3. Check h5plibraryhandler is set to "H5P framework v1.26 (h5plib_v126)" and that no other option appears in the list.
      4. Create a course and enrol a student.
      5. Go to "Content bank"  (the link is in the More option in the secondary navigation).
      6. Click on the "Upload button".
      7. Upload question-set-1292162595902446217_api126.h5pfile and Save changes.
      8. Check no error appears and the H5P content is displayed.
      9. Edit the content and confirm the editor is shown properly too.
      10. Go to the main course page and enable edit mode.
      11. Create an H5P activity using the previous H5P content created in the Content bank (found in the Content bank repository).
      12. Save and log out.
      13. Log in as a student.
      14. Go to the H5P activity and complete it.
      15. Reload the page.
      16. Confirm the "Attempts report" tab is displayed.
      17. Go to the "Attempts report" tab.
      18. Confirm the previous attempt appears.
      Show
      Log in as an admin. Go to "Site administration > H5P > H5P settings". Check h5plibraryhandler is set to "H5P framework v1.26 (h5plib_v126)" and that no other option appears in the list. Create a course and enrol a student. Go to "Content bank"  (the link is in the More option in the secondary navigation). Click on the "Upload button". Upload question-set-1292162595902446217_api126.h5p file and Save changes. Check no error appears and the H5P content is displayed. Edit the content and  confirm  the editor is shown properly too. Go to the main course page and enable edit mode. Create an H5P activity using the previous H5P content created in the Content bank (found in the Content bank repository). Save and log out. Log in as a student. Go to the H5P activity and complete it. Reload the page. Confirm  the "Attempts report" tab is displayed. Go to the "Attempts report" tab. Confirm  the previous attempt appears.
    • 3
    • HQ 2024 Planning I1 Moppies

      Hello,

      We've been downloading activities from h5p.com and recently started encountering an error with Question Sets when uploading to Moodle. We also upgraded to latest Moodle 4.3.2 and that didn't help.

      api-version-unsupported : The system was unable to install the Question Set component from the package, as it requires a newer version of the H5P plugin. This site is currently running version 1.25, whereas the required version is 1.26 or higher. Please upgrade and then try again.

      We noticed that h5p-question-set repo has core api version set to 1.26 (as of Nov 8th 2023): https://github.com/h5p/h5p-question-set/blob/master/library.json

        "coreApi": {
          "majorVersion": 1,
          "minorVersion": 26
        },

       

      Moodle's latest stable has 1.25: https://github.com/moodle/moodle/blob/MOODLE_403_STABLE/h5p/h5plib/v124/joubel/core/h5p.classes.php

      class H5PCore {
       
        public static $coreApi = array(
          'majorVersion' => 1,
          'minorVersion' => 25
        ); 

       

      We also noticed MDL-76157 a year ago (Nov 2022) where H5P had to rollback a core API change and wonder if it's a similar issue this time?

      Any recommendations on workarounds or a solution to fix? Thanks!

            sarjona Sara Arjona (@sarjona)
            skylar Skylar
            Laurent David Laurent David
            Huong Nguyen Huong Nguyen
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            2 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours, 9 minutes
                1d 2h 9m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.