Importing Hotpots from M1.9 backup to M2.x

Importing Hotpots from M1.9 backup to M2.x

by Philippe Decloitre -
Number of replies: 6

Hello Gordon, and HP users.

I am afraid the title of my previous question was misleading and too generic. So I am resending my bottle to the sea with a more precise title just in case...

I've been trying to get my HP activites from our old 1.9M into our brand new, shiny, univ 2.5M.

The titles of the exercises appear in the course, put they lead to:

Fichier source non trouvé (ou vide) : /http://localhost/19/99/cladding/cladding01.jcl

("/http" does look a bit weird...)

This shows the restoring did get the name of the file right, but somehow did not copy it. (If I assume correctly) I did not "convert" the backup file when using the restore function.

I simply let Moodle2 do it's own conversion of the Zip backup at "restore" time. Is there a better way?

Thanks for your help.

Average of ratings: -
In reply to Philippe Decloitre

Re: Importing Hotpots from M1.9 backup to M2.x

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Philippe,
the file name shouldn't have "http" in it. Do you know what the "Fichier source" for this HotPot was in the 1.9 site?
Gordon

In reply to Gordon Bateson

Re: Importing Hotpots from M1.9 backup to M2.x

by Philippe Decloitre -

Hi Gordon,

I've been a bit slow at answering... I wanted to make sure things were properly wrong wink

The problem has been the same on different Moodle 2,x including yours!

Here is what I get on you demo Moodle, at the following address:
http://bateson.kanazawa-gu.ac.jp/24/mod/hotpot/attempt.php?id=41

I have attached to this post the course I'm trying to restore onto a 2.x Moodle.

I you have any clue...i'm most interested!!

Cheers,
Philippe

 

 

In reply to Philippe Decloitre

Re: Importing Hotpots from M1.9 backup to M2.x

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Philippe,
the good news is that the backup seems to have the original files in it, and when you restored the file to my site the files were put into "Course legacy files".

However, I think perhaps that the original "Source file" setting for this HotPot was a URL. Is that correct?

Gordon

In reply to Gordon Bateson

Re: Importing Hotpots from M1.9 backup to M2.x

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Philippe,

I have just tried restoring from a 1.9 backup to 2.5 and I got the same isue. That will allow me to investigate further and hopefully find a fix. Please leave it with me for a few days.

cheers
Gordon

In reply to Gordon Bateson

Re: Importing Hotpots from M1.9 backup to M2.x

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Well, I'm embarrassed to say that when I looked at the HotPot script to restore from Moodle 19 to 2.x I found a debugging line which I mistakenly left there. It was this line that was adding "http://" to the source file and causing the issue you reported.

Please could you download the latest version of the HotPot module and use that in future to restore from Moodle 1.9 courses.

The lastest version of the HotPot module will attempt to fix the "sourcefile" field in any HotPots that were previously restored from a Moodle 1.9 backup.

cheers
Gordon