Backup and restore

 
 
Picture of John Szkudlapski
Moodle 1.9 to 2.4 Course Import Error
 

Im attempting to import courses from our existing 1.9 Moodle into our new Moodle 2.3 (were not upgrading).

No matter what option I choose (create new course, merge into this one, etc) I always get the same error

error/file_invalid_path

More information about this error


 
Average of ratings: -
Just wondering . . .
Re: Moodle 1.9 to 2.4 Course Import Error
Group Particularly helpful Moodlers

Check out https://tracker.moodle.org/browse/MDL-34388

https://tracker.moodle.org/browse/MDL-37879

What size are the files?  Is this error in all the files?

-Derek

 
Average of ratings: -
Picture of John Szkudlapski
Re: Moodle 1.9 to 2.4 Course Import Error
 

Hi Derek

Sorry I typed 2.3 but in facts its on Moodle 2.4

It happens on any backup over 500mb (Which there are a lot).

I have set PHP & IIS to accept files in excess of 2GB to see if it was that.

 
Average of ratings: -
Picture of John Szkudlapski
Re: Moodle 1.9 to 2.4 Course Import Error
 

Derek

Actually it happens on every backup I have tried, even some as small as 10mb

https://tracker.moodle.org/browse/MDL-34388

Looks exactly like what I am experienging, however I dont have a clue how to install the fix sad

My 2.4 install 2.4.1+ (20130208) built 5 days ago, so not sure if this fix is included in the base install

 

 
Average of ratings: -
Picture of Benjamin St.Germain
Re: Moodle 1.9 to 2.4 Course Import Error
 

The problem is this as referenced in a post above if it's happeneing on every Moodle 1 to Moodle 2 import:
https://tracker.moodle.org/browse/MDL-37879

The work around listed in that tracker will fix it:
file: /moodle/backup/converter/moodle1/lib.php
line 1216
comment out these lines:
if ($sourcefullpath !== clean_param($sourcefullpath, PARAM_PATH))
{ throw new moodle1_convert_exception('file_invalid_path', $sourcefull$ }

 

 
Average of ratings: -