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

Php notice during async course restore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.7, 3.8
    • Backup
    • MOODLE_37_STABLE, MOODLE_38_STABLE

      1. Make sure debugging is on
      2. Enable async course backups
      3. Backup a course and run cron
      4. Download the resulting backup file
      5. Go to Site admin > Course > Restore
      6. Upload the backup and proceed to restore the course into a new course
      7. When you are asked to wait (when the async restore in being processed), you'll see a php notice:

        Notice: Trying to get property 'id' of non-object

      The notice comes from this line.

      In this case, $context is system, and $course is null.

      So, the 'return to course' button won't work (it doesn't).

            Unassigned Unassigned
            jaked Jake Dallimore
            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.