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

Fatal error when restoring a course with file aliases

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.6
    • 2.6
    • Backup
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • MDL-41380-master
    • Hide
      1. Add an image to your private files
      2. Go to a course
      3. Create a new file resource
      4. Pick the file from your private files as an alias/shortcut
      5. Make sure you can view the file resource
      6. Backup the file resource with all defaults
      7. Restore the file resource in another course
      8. Make sure the restore is successful
      Show
      Add an image to your private files Go to a course Create a new file resource Pick the file from your private files as an alias/shortcut Make sure you can view the file resource Backup the file resource with all defaults Restore the file resource in another course Make sure the restore is successful

      This happened when I was restoring one of my courses:

      Fatal error: Call to undefined method restore_dbops::decode_backup_temp_info() in /home/fred/www/repositories/sm/moodle/backup/moodle2/restore_stepslib.php on line 3627
       
      Call Stack: 
      0.0003 719624 1. {main}() /home/fred/www/repositories/sm/moodle/admin/tool/uploadcourse/index.php:0
      1.2812 129422120 2. tool_uploadcourse_processor->execute() /home/fred/www/repositories/sm/moodle/admin/tool/uploadcourse/index.php:97
      102.7138 237932056 3. tool_uploadcourse_course->proceed() /home/fred/www/repositories/sm/moodle/admin/tool/uploadcourse/classes/processor.php:206
      103.8407 241242520 4. restore_controller->execute_plan() /home/fred/www/repositories/sm/moodle/admin/tool/uploadcourse/classes/course.php:725
      103.8410 241242520 5. restore_plan->execute() /home/fred/www/repositories/sm/moodle/backup/controller/restore_controller.class.php:315
      103.8413 241242520 6. base_plan->execute() /home/fred/www/repositories/sm/moodle/backup/util/plan/restore_plan.class.php:157 116.0016 244469160 7. base_task->execute() /home/fred/www/repositories/sm/moodle/backup/util/plan/base_plan.class.php:163
      124.8347 244803424 8. restore_execution_step->execute() /home/fred/www/repositories/sm/moodle/backup/util/plan/base_task.class.php:153
      124.8347 244803424 9. restore_process_file_aliases_queue->define_execution() /home/fred/www/repositories/sm/moodle/backup/util/plan/restore_execution_step.class.php:34
      

      I assume this is linked to file aliases, and it a regression of MDL-40618.

            mr-russ Russell Smith (Inactive)
            fred Frédéric Massart
            Frédéric Massart Frédéric Massart
            Damyon Wiese Damyon Wiese
            Jason Fowler Jason Fowler
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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