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

Calling get_generated_svg_for_id() cause server error logs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.2.3, 4.3
    • Course
    • MOODLE_402_STABLE, MOODLE_403_STABLE

      Found during testing MDL-78439.

      get_generated_svg_for_id() method needs the page context (A quite popular error for WS if we're trying to do something with global $OUTPUT).

      If we do not set the page context, it will cause server error logs like this

      Coding problem: $PAGE->context was not set. You may have forgotten to call require_login() or $PAGE->set_context().  

      We need to fix this for MDL-78439 and MDL-77991 too.

            Unassigned Unassigned
            huongn@moodle.com Huong Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

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