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

Can't add block to H5P (core) activity

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • MOODLE_39_STABLE
    • MDL-70528-master
    • Hide
      1. Download the attached arithmetic-quiz-22-57860.h5p file.
      2. Log in as admin.
      3. Create a course C1.
      4. Add an h5pactivity activity to the course, uploading the arithmetic-quiz-22-57860.h5p package.
      5. Go to the h5pactivity page
      6. Ensure you can add blocks to the activity page.
      Show
      Download the attached  arithmetic-quiz-22-57860.h5p file . Log in as admin. Create a course C1. Add an h5pactivity activity to the course, uploading the  arithmetic-quiz-22-57860.h5p package. Go to the h5pactivity page Ensure you can add blocks to the activity page.
    • Moppies Kanban

       

      When adding a block to an H5P activity (moodle core, not third-party plugin), an error appears.

      Steps to reproduce:

      1. Create a course with a Moodle h5p activity within it.
      2. Open the activity.
      3. Click add block, select any block.
      4. The following error appears:

       
      Debug info:
      Error code: generalexceptionmessage
      Stack trace: * line 321 of /mod/h5pactivity/lib.php: TypeError thrown

      • line 2140 of /lib/blocklib.php: call to h5pactivity_page_type_list()
      • line 864 of /lib/blocklib.php: call to generate_page_type_patterns()
      • line 1482 of /lib/blocklib.php: call to block_manager->add_block_at_end_of_default_region()
      • line 1408 of /lib/blocklib.php: call to block_manager->process_url_add()
      • line 1500 of /lib/pagelib.php: call to block_manager->process_url_actions()
      • line 985 of /lib/pagelib.php: call to moodle_page->starting_output()
      • line 1299 of /lib/outputrenderers.php: call to moodle_page->set_state()
      • line 1945 of /lib/setuplib.php: call to core_renderer->header()
      • line 70 of /mod/h5pactivity/view.php: call to bootstrap_renderer->__call()
         

            ilyatregubov Ilya Tregubov
            davidpesce David Pesce
            Carlos Escobedo Carlos Escobedo
            Victor Déniz Falcón Victor Déniz Falcón
            Janelle Barcega Janelle Barcega
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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