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

Can't restore a course backup (Moodle 2.1.1+ 20111007)


    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
    • Environment:
      Linux 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC 2011 x86_64 GNU/Linux
    • Database:
    • Affected Branches:


      We can't restore from a backup course file into a new course. Here is the stack from the debugger:

      Incorrect pool file content da39a3ee5e6b4b0d3255bfef95601890afd80709.

      Més informació d'aquest error
      Stack trace:

      line 1062 of /lib/filestorage/file_storage.php: file_pool_content_exception thrown
      line 810 of /lib/filestorage/file_storage.php: call to file_storage->add_file_to_pool()
      line 720 of /backup/util/dbops/restore_dbops.class.php: call to file_storage->create_file_from_pathname()
      line 222 of /backup/util/plan/restore_structure_step.class.php: call to restore_dbops::send_files_to_pool()
      line 1197 of /backup/moodle2/restore_stepslib.php: call to restore_structure_step->add_related_files()
      line 359 of /backup/util/plan/restore_structure_step.class.php: call to restore_course_structure_step->after_execute()
      line 108 of /backup/util/plan/restore_structure_step.class.php: call to restore_structure_step->launch_after_execute_methods()
      line 153 of /backup/util/plan/base_task.class.php: call to restore_structure_step->execute()
      line 148 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
      line 157 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
      line 302 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
      line 144 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()
      line 45 of /backup/restore.php: call to restore_ui->execute()

      Output buffer: Notice: Uninitialized string offset: 0 in /var/www/mtest/backup/util/helper/backup_file_manager.class.php on line 54 Notice: Uninitialized string offset: 1 in /var/www/mtest/backup/util/helper/backup_file_manager.class.php on line 54

        Gliffy Diagrams

          Issue Links



              • Votes:
                2 Vote for this issue
                3 Start watching this issue


                • Created: