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

Course context not set on report_log produces error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2
    • 3.0.7, 3.1.3
    • Reports

    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

              lameze Simey Lameze
              lameze Simey Lameze
              Frédéric Massart Frédéric Massart
              David Monllaó David Monllaó
              James Klarich James Klarich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/Nov/16