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

Course context not set on report_log produces error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.0.7, 3.1.3
    • Component/s: Reports
    • Labels:

      Description

      During the testing of the MDL-55916 I've got the following error after enabling the maintenance mode and trying to access the log report as student:

      Coding problem: $PAGE->context was not set. You may have forgotten to call require_login() or $PAGE->set_context(). The page may not display correctly as a result
      line 458 of /lib/pagelib.php: call to debugging()
      line 773 of /lib/pagelib.php: call to moodle_page->magic_get_context()
      line 1418 of /lib/weblib.php: call to moodle_page->__get()
      line 1164 of /lib/pagelib.php: call to format_string()
      line 2943 of /lib/weblib.php: call to moodle_page->set_title()
      line 2692 of /lib/moodlelib.php: call to print_maintenance_message()
      line 108 of /report/log/index.php: call to require_login()
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lameze Simey Lameze
              Reporter:
              lameze Simey Lameze
              Peer reviewer:
              Frédéric Massart
              Integrator:
              David Monllaó
              Tester:
              James Klarich
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Nov/16