warning with hotpot\lib.php

warning with hotpot\lib.php

από erick lignon -
Αριθμός απαντήσεων: 6

Hello,

When I try to upload a Hot Pot SCO package on Moodle, I get 2 warning  messages. The quizz was designed with Hot Pot v.6.  My website runs Moodle 1.8.

Could you help me ?

Here is the warnings:
Warning: array_keys() [function.array-keys <http://localhost/mod/hotpot/function.array-keys>]: The first argument should be an array in N:\mes_cours\Moodle\moodle\mod\hotpot\lib.php on line *1555*
Warning: Invalid argument supplied for foreach() in *N:\mes_cours\Moodle\moodle\mod\hotpot\lib.php on line *1556*

Μέσος όρος βαθμολογίας: -
Σε απάντηση σε erick lignon

Re: warning with hotpot\lib.php

από Gordon Bateson -
Φωτογραφία Core developers Φωτογραφία Peer reviewers Φωτογραφία Plugin developers

Hi Eric,

The HotPot module doesn't know about SCO packages.

When adding new HotPot activity please set the "File name" to point to either a Hot Potatoes XML file, i.e. a jcl, jcw, jmt, jmx, or jqz file, or Hot Potatoes html file, created by selecting "Create standard V6 page" from one of the HP applications.

regards
Gordon

Σε απάντηση σε Gordon Bateson

Re: warning with hotpot\lib.php

από erick lignon -

Dear Gordon,

Many thanks for your answer.

The first time I uploaded a SCO package, I forgot to unzip. So I made the mistake you are talking about.  And I got an error message.

But now, it is different.

In fact, the HotPot activity works (I forgot to mention this) λυπημένος

However, there are these 2 warnings each time I add a new HotPot activity to the course.

Σε απάντηση σε erick lignon

Re: warning with hotpot\lib.php

από Gordon Bateson -
Φωτογραφία Core developers Φωτογραφία Peer reviewers Φωτογραφία Plugin developers

I see - sort of. Could you attach a sample of one of your Hot Potatoes files to your next post to this forum please.

thanks
Gordon

Σε απάντηση σε Gordon Bateson

Re: warning with hotpot\lib.php

από erick lignon -

Dear Gordon,

Thank you for your help.
I join the zip file.

Eric

Σε απάντηση σε erick lignon

Re: warning with hotpot\lib.php

από Gordon Bateson -
Φωτογραφία Core developers Φωτογραφία Peer reviewers Φωτογραφία Plugin developers

Thanks Eric. The file you attached looked like a SCORM file. We don't want that. As I tried to say earlier, the HotPot module doesn't know about SCORM files.

It looks as though this is a JMatch exercise, so please try adding the "JOBS-matching.jmt" to Moodle as a HotPot activity.

Gordon