When a user with a teacher role attempts to configure blocks inside a Choice activity, the error "This block (id=X) does not exist on this page" is displayed.
Steps to reproduce:
1. Create a course and a Choice activity.
2. Enroll a user as a teacher in the course and login as that teacher
3. Turn editing on.
4. Click on the activity.
5. Click the "Configure" icon of any block on the page.
6. Save changes (you don't have to actually make any changes).
An error similiar to "This block (id=4) does not exist on this page (http://(Moodle site)/mod/choice/view.php?id=1835)." will appear.
Debug output:
This block (id=4) does not exist on this page
|
Debug info:
|
Error code: blockdoesnotexistonpage
|
Stack trace:
|
|
line 830 of /lib/blocklib.php: block_not_on_page_exception thrown
|
line 1271 of /lib/blocklib.php: call to block_manager->find_instance()
|
line 1104 of /lib/blocklib.php: call to block_manager->process_url_edit()
|
line 1409 of /lib/pagelib.php: call to block_manager->process_url_actions()
|
line 846 of /lib/pagelib.php: call to moodle_page->starting_output()
|
line 785 of /lib/outputrenderers.php: call to moodle_page->set_state()
|
line 733 of /lib/outputrenderers.php: call to core_renderer->header()
|
line ? of unknownfile: call to core_renderer->redirect_message()
|
line 1484 of /lib/setuplib.php: call to call_user_func_array()
|
line 2557 of /lib/weblib.php: call to bootstrap_renderer->__call()
|
line 2557 of /lib/weblib.php: call to bootstrap_renderer->redirect_message()
|
line 67 of /mod/choice/view.php: call to redirect()
|
- duplicates
-
MDL-49184 Choice activity bug when editing/deleting a block
-
- Closed
-