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

This block does not exist error appears when attempting to configure blocks inside a Choice activity

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.5.3, 2.6.1
    • Blocks, Choice
    • MOODLE_25_STABLE, MOODLE_26_STABLE
    • Hide

      Admin role can configure blocks.

      Show
      Admin role can configure blocks.

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

            Unassigned Unassigned
            michael.robinette Mike Robinette (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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