Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-34086 META: Increase robustness of upgrade from 1.9 to 2.2
  3. MDL-37774

Moodle 1.9 to 2.x restore of course with a display directory

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.2.8, 2.3.5, 2.4.2
    • 2.1.10, 2.2.7, 2.3.4, 2.4.1
    • Backup, Course
    • MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • MDL-37774-folder-conversion
    • Hide

      Dance lambada for a while to see if it helps.

      Show
      Dance lambada for a while to see if it helps.
    • Hide

      Testing difficulty: Easy, requires Moodle 1.9 available

      1. Create a new course at Moodle 1.9 site
      2. Edit Course files in the course. Create some folders, sub-folders and sub-sub-folders. Upload couple of files into various folders there (including the root)
      3. In the course, create at least two Resources of the type "Display a directory". In one of them, choose "Main files directory" as the displayed folder. In the other one, choose some folder or sub-folder to be displayed.
      4. Backup the course (no need to backup user data not roles assignments but it should not matter).
      5. Restore the course at patched Moodle 2.x
      6. TEST: Make sure the restore works well and all Resources are converted into the Folder modules with files (FYI the expected behaviour is that each Folder module creates its own copy of the original file in the Course files).
      Show
      Testing difficulty: Easy, requires Moodle 1.9 available Create a new course at Moodle 1.9 site Edit Course files in the course. Create some folders, sub-folders and sub-sub-folders. Upload couple of files into various folders there (including the root) In the course, create at least two Resources of the type "Display a directory". In one of them, choose "Main files directory" as the displayed folder. In the other one, choose some folder or sub-folder to be displayed. Backup the course (no need to backup user data not roles assignments but it should not matter). Restore the course at patched Moodle 2.x TEST: Make sure the restore works well and all Resources are converted into the Folder modules with files (FYI the expected behaviour is that each Folder module creates its own copy of the original file in the Course files).

      One of our faculty has a course with a link to "Course Documents" in our 1.9 system. When they backup the course and attempt to restore to 2.x, they are given an error "error/moodle/file invalid path", with debug on, I can see that it having trouble with paths, as it has // in the path name for the debug error.

      It took me a while to find this, but, turning off this particular element in the backup allows for the restore to work.

      To test:
      In moodle 1.9 or prior, add a resource "Display a directory". Point to a directory in your course with files; in my case "Main files directory".

      Backup your course in 1.9
      Restore the course in 2.x

      Receive error message.

            mudrd8mz David Mudrák (@mudrd8mz)
            jayhuber Jay Huber
            Dan Poltawski Dan Poltawski
            Rossiani Wijaya Rossiani Wijaya
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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