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

Problem viewing calendar on a theme without side-post block region

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Calendar
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      I have a custom theme that doesn't use either side-pre or side-post block regions and when trying to view the calendar I get the following error.

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

      Stack trace:

      • line 811 of /lib/blocklib.php: coding_exception thrown
      • line 414 of /lib/blocklib.php: call to block_manager->check_region_is_known()
      • line 179 of /calendar/renderer.php: call to block_manager->add_pretend_block()
      • line 2499 of /calendar/lib.php: call to core_calendar_renderer->add_pretend_calendar_block()
      • line 163 of /calendar/view.php: call to calendar_information->add_sidecalendar_blocks()

        Attachments

          Activity

            People

            • Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              samhemelryk Sam Hemelryk
              Tester:
              Nobody
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10