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

Can't add block to H5P (core) activity

    XMLWordPrintable

    Details

    • Sprint:
      Moppies Kanban

      Description

       

      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()
         

        Attachments

          Activity

            People

            Assignee:
            ilyatregubov Ilya Tregubov
            Reporter:
            davidpesce David Pesce
            Peer reviewer:
            Carlos Escobedo Carlos Escobedo
            Integrator:
            Víctor Déniz Falcón Víctor Déniz Falcón
            Tester:
            Janelle Barcega Janelle Barcega
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              8/Mar/21

                Time Tracking

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