Moodle 1.9 to 2.4 Course Import Error

Moodle 1.9 to 2.4 Course Import Error

by John Szkudlapski -
Number of replies: 4

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

Attachment Moodle Course Error.png
Average of ratings: -
In reply to John Szkudlapski

Re: Moodle 1.9 to 2.4 Course Import Error

by Derek Chirnside -

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

In reply to Derek Chirnside

Re: Moodle 1.9 to 2.4 Course Import Error

by John Szkudlapski -

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.

In reply to Derek Chirnside

Re: Moodle 1.9 to 2.4 Course Import Error

by John Szkudlapski -

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

 

In reply to John Szkudlapski

Re: Moodle 1.9 to 2.4 Course Import Error

by Benjamin St.Germain -

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$ }