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

Error exception in content bank when an H5P file doesn't exist

    XMLWordPrintable

Details

    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • MDL-72358-311
    • MDL-72358-master
    • Hide
      1. Login as admin.
      2. Go to the content bank.
      3. Upload the files attached to the issue (accordion.5hp and arithmetic-quiz.h5p).
      4. Run the following SQL query: 

        DELETE FROM mdl_files
         WHERE component = 'contentbank' AND filearea = 'public' AND filename = 'accordion.h5p'

      5. Reload the Content bank page.
      6. Check there is no error displayed.
      7. Check that only "arithmetic-quiz.h5p" is displayed.

       

      Show
      Login as admin. Go to the content bank. Upload the files attached to the issue (accordion.5hp and arithmetic-quiz.h5p). Run the following SQL query:  DELETE FROM mdl_files WHERE component = 'contentbank' AND filearea = 'public' AND filename = 'accordion.h5p' Reload the Content bank page. Check there is no error displayed. Check that only "arithmetic-quiz.h5p" is displayed.  
    • Moppies Kanban

    Description

      An issue has been raised in MoodleCloud related to the content bank: MC-4062

      In some cases, loading the content bank, from a course page, gives an "Invalid H5P content URL", not offering any way to delete the offending content or create new one.

       

      Attachments

        1. MDL-72358_v3.11.png
          MDL-72358_v3.11.png
          33 kB
        2. MDL-72358_master.png
          MDL-72358_master.png
          33 kB
        3. arithmetic-quiz.h5p
          731 kB
        4. accordion.h5p
          530 kB

        Issue Links

          Activity

            People

              sarjona Sara Arjona (@sarjona)
              sarjona Sara Arjona (@sarjona)
              Carlos Escobedo Carlos Escobedo
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Angelia Dela Cruz Angelia Dela Cruz
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/Sep/21

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h