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

Content bank files used by reference not restored on other site

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MDL-74201-master
    • Hide

      Setup

      You can skip the setup if you use the attached file: backup-moodle2-course-9-h5p_references-20221109-1110.mbz (which was created with Moodle 3.11)

      1. Create a course
      2. Navigate to the content bank
      3. Add an H5P content (Item A) to the content bank. You can upload the attached multiple-choice-2-2.h5p file.
      4. Navigate to the course page
      5. Create an H5P activity and select Item A by reference.
      6. Backup the course. It's OK if the following message is displayed at the end of the backup process: "File references to external contents are included in the backup file. These won't work if the backup is restored on a different site."

      Testing instructions

      1. Restore the backup on another Moodle site
      2. Navigate to the new course
      3. Confirm that the content bank contains the expected restored Item A (if you are using the backup, this activity is called "H5P activity (reference)").
      4. Navigate to the H5P activity.
      5. Confirm there is no error and the H5P content is displayed properly.
      6. Go to the Content ban, edit this content, do some visible changes and save changes (if you're using the backup, this is multiple-choice-2-6.h5p)
      7. Go back to the H5P activity and confirm the H5P content has been changed too.
      Show
      Setup You can skip the setup if you use the attached file: backup-moodle2-course-9-h5p_references-20221109-1110.mbz (which was created with Moodle 3.11) Create a course Navigate to the content bank Add an H5P content (Item A) to the content bank. You can upload the attached multiple-choice-2-2.h5p file. Navigate to the course page Create an H5P activity and select Item A by reference. Backup the course. It's OK if the following message is displayed at the end of the backup process: "File references to external contents are included in the backup file. These won't work if the backup is restored on a different site." Testing instructions Restore the backup on another Moodle site Navigate to the new course Confirm that the content bank contains the expected restored Item A (if you are using the backup, this activity is called "H5P activity (reference)"). Navigate to the H5P activity. Confirm there is no error and the H5P content is displayed properly. Go to the Content ban, edit this content, do some visible changes and save changes (if you're using the backup, this is multiple-choice-2-6.h5p) Go back to the H5P activity and confirm the H5P content has been changed too.
    • 1
    • HQ Sprint 1.1 Moppies

      It appears that files used by reference (the default) from the content bank are not restored  on another site, even though the backup contains the content bank.

      Replication steps

      1. Create a course
      2. Navigate to the content bank
      3. Add an item (Item A) to the content bank
      4. Navigate to the course page
      5. Create an H5P activty and select Item A by reference.
      6. Backup the course
      7. Restore the backup on another Moodle site
      8. Navigate to the new course
      9. Confirm that the content bank contains the expected restored Item A.
      10. Navigate to the H5P activity.

      Expected

      The restored H5P activity contains its original content.

      Actual

      The H5P activity content throws an error.

       

        1. backup-moodle2-course-9-h5p_references-20221109-1110.mbz
          1.39 MB
          Sara Arjona (@sarjona)
        2. MDL-74201_master_1.png
          98 kB
          Angelia Dela Cruz
        3. MDL-74201_master_2.png
          107 kB
          Angelia Dela Cruz
        4. MDL-74201_master_3.png
          101 kB
          Angelia Dela Cruz
        5. MDL-74201_v311_1.png
          120 kB
          Angelia Dela Cruz
        6. MDL-74201_v311_2.png
          105 kB
          Angelia Dela Cruz
        7. MDL-74201_v311_3.png
          99 kB
          Angelia Dela Cruz
        8. MDL-74201_v400_1.png
          123 kB
          Angelia Dela Cruz
        9. MDL-74201_v400_2.png
          105 kB
          Angelia Dela Cruz
        10. MDL-74201_v400_3.png
          100 kB
          Angelia Dela Cruz
        11. multiple-choice-2-6.h5p
          719 kB
          Sara Arjona (@sarjona)

            amaia Amaia Anabitarte
            fred Frédéric Massart
            Carlos Escobedo Carlos Escobedo
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            2 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 55 minutes
                2h 55m

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