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

Improve error message when $PAGE->context is not set

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.1
    • 2.0.4
    • Libraries
    • None
    • MOODLE_20_STABLE
    • MOODLE_21_STABLE
    • pagelib_single
    • Easy
    • Hide

      Create a page that includes config.php, then calls $OUTPUT->header() without calling $PAGE->set_context() or require_login() first. The page will display a warning then display the content.

      Show
      Create a page that includes config.php, then calls $OUTPUT->header() without calling $PAGE->set_context() or require_login() first. The page will display a warning then display the content.

      The error message displayed when $OUTPUT->header() is called before $PAGE->set_context() currently doesn't explain what the problem is or how to fix it.

            timhunt Tim Hunt
            marxjohnson Mark Johnson
            Tim Hunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Glenn Ansley Glenn Ansley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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