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

Perform the restore of a course as a teacher breaks the course in Moodle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Blocker Blocker
    • None
    • 2.0.1, 2.0.2, 2.0.3, 2.1
    • Backup
    • MOODLE_20_STABLE, MOODLE_21_STABLE

      To reproduce:

      1. go to a course as a teacher
      2. Press on the "Restore" in the block "settings"
      3. Choose a restore file (.mbz, in attachment)
      4. Press "continue"
      5. Select "Delete the contents of the existing course and restore"
      6. Select a course
      7. Press "continue"
      8. Press "next"
      9. Press on "perform the restoration"

      The result is that the course is not restored, the old version is now broken, context error message with developper mode set to ON, and all the users, including the teachers are kicked out of the course. here below the error after the restoration:

      line 429 of /lib/setuplib.php: moodle_exception thrown
      line 2796 of /lib/questionlib.php: call to print_error()
      line 587 of /lib/questionlib.php: call to question_require_capability_on()
      line 651 of /lib/questionlib.php: call to delete_question()
      line 4072 of /lib/moodlelib.php: call to question_delete_course()
      line 1359 of /backup/util/dbops/restore_dbops.class.php: call to remove_course_contents()
      line 142 of /backup/util/ui/restore_ui.class.php: call to restore_dbops::delete_course_content()
      line 39 of /backup/restore.php: call to restore_ui->execute()

        1. backup-moodle2-course.mbz
          80 kB
          Gilles-Philippe Leblanc
        2. error_teacher.jpg
          81 kB
          Gilles-Philippe Leblanc
        3. course_admin.jpg
          138 kB
          Gilles-Philippe Leblanc

            ankit_frenz Ankit Agarwal
            leblangi Gilles-Philippe Leblanc
            Votes:
            10 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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