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

Errors when adding block to the site participants page


    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 2.0.3, 2.1
    • Fix Version/s: STABLE backlog
    • Component/s: Blocks
    • Labels:
    • Affected Branches:


      On Site pages->Participants error arrives when attempting to add a block

      Warning: end() expects parameter 1 to be array, null given in /var/www/repositories/master/moodle/lib/blocklib.php on line 662

      Can not find data record in database table course.

      Debug info: SELECT * FROM


      WHERE id = ?
      [array (
      0 => 0,
      Stack trace:
      line 1254 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
      line 1231 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
      line 43 of /user/index.php: call to moodle_database->get_record()

      Coding error detected, it must be fixed by a programmer: Trying to reference an unknown block region

      Stack trace:
      line 851 of /lib/blocklib.php: coding_exception thrown
      line 633 of /lib/blocklib.php: call to block_manager->check_region_is_known()
      line 700 of /lib/blocklib.php: call to block_manager->add_block()
      line 1089 of /lib/blocklib.php: call to block_manager->add_block_at_end_of_default_region()
      line 1064 of /lib/blocklib.php: call to block_manager->process_url_add()
      line 1208 of /lib/pagelib.php: call to block_manager->process_url_actions()
      line 720 of /lib/pagelib.php: call to moodle_page->starting_output()
      line 607 of /lib/outputrenderers.php: call to moodle_page->set_state()
      line 2038 of /lib/outputrenderers.php: call to core_renderer->header()
      line ? of unknownfile: call to core_renderer->fatal_error()
      line 1279 of /lib/setuplib.php: call to call_user_func_array()
      line ? of unknownfile: call to bootstrap_renderer->__call()
      line 328 of /lib/setuplib.php: call to bootstrap_renderer->fatal_error()
      line ? of unknownfile: call to default_exception_handler()

        Gliffy Diagrams

          Issue Links


            salvetore Michael de Raadt added a comment -

            I was able to replicate this problem.

            salvetore Michael de Raadt added a comment - I was able to replicate this problem.


              • Votes:
                0 Vote for this issue
                0 Start watching this issue


                • Created: