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

Prevent fatal error if retrieving legacy log data fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.9
    • 2.9
    • Logging
    • MOODLE_29_STABLE
    • MOODLE_29_STABLE
    • MDL-48729_legacy_log_error
    • Hide

      Go to side admin > plugins > logging > manage log stores and make Legacy Log visible. Both standard and legacy should now be visible (if they aren't make them both visible).

      In Legacy Log's own settings tick loglegacy.

      Go into a course and select course admin > reports > logs. Select "legacy log" from one of the drop downs and check that you can view log entries. There will only be one or two as you just turned it on.

      Show
      Go to side admin > plugins > logging > manage log stores and make Legacy Log visible. Both standard and legacy should now be visible (if they aren't make them both visible). In Legacy Log's own settings tick loglegacy. Go into a course and select course admin > reports > logs. Select "legacy log" from one of the drop downs and check that you can view log entries. There will only be one or two as you just turned it on.

      MDL-34867 introduced a changed that means that the legacy log will now produce a fatal error if retrieving log data fails. See Petr's comment at https://tracker.moodle.org/browse/MDL-48702?focusedCommentId=331467&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-331467

      Note that this change was introduced by MDL-34867 into master only.

      MDL-48702 is backporting that change so this fix to 2.7 and 2.8 will have to wait for that backporting to occur.

            andyjdavis Andrew Davis
            andyjdavis Andrew Davis
            Petr Skoda Petr Skoda
            Dan Poltawski Dan Poltawski
            John Okely John Okely
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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