-
Bug
-
Resolution: Fixed
-
Minor
-
3.9.3, 3.10.1
-
MOODLE_310_STABLE, MOODLE_39_STABLE
-
MOODLE_39_STABLE
-
MDL-70528-master -
-
Moppies Kanban
When adding a block to an H5P activity (moodle core, not third-party plugin), an error appears.
Steps to reproduce:
- Create a course with a Moodle h5p activity within it.
- Open the activity.
- Click add block, select any block.
- 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()