JQuiz Images missing in Mod 2.2.2

JQuiz Images missing in Mod 2.2.2

by Alan Cherwinski -
Number of replies: 3

I am using the latest version of HotPotatoes to create a .jqz file.The Quiz contains images in .jpg or .png format. One image per question. All file names are simple and all in lower case.

I creating new HotPot activitiy in  Moodle 2.2.2+ (with the latest HP plugin version). I upload without any sub-folders or name changes the jqz and the required image files.

In the final Quiz all the images appear as broken links.

The same steps for a .jmt hotpotato activites works fine with all the image appearing properly.

None of the content has been zipped or migrated from 1.9.

 

The Page Source for the none working jquiz contains this string:

PreloadImages(
        'http://training.alphaplus.ca/moodle/pluginfile.php/11446/mod_hotpot/sourcefile/TEMP/Body_language-1.png',
        'http://training.alphaplus.ca/moodle/pluginfile.php/11446/mod_hotpot/sourcefile/TEMP/scriptemailsettings.jpg'

While the working JMT activity contains this string:

function StartUp(){
    PreloadImages(
        'http://training.alphaplus.ca/moodle/pluginfile.php/11447/mod_hotpot/sourcefile/Body_language-1.png',
        'http://training.alphaplus.ca/moodle/pluginfile.php/11447/mod_hotpot/sourcefile/Body_language-2.png',
        'http://training.alphaplus.ca/moodle/pluginfile.php/11447/mod_hotpot/sourcefile/Body_language-3.png',
        'http://training.alphaplus.ca/moodle/pluginfile.php/11447/mod_hotpot/sourcefile/Body_language-4.png'
    );
Could the TEMP be an issue?

 

Any suggestions for fixing the problem will be greatly appreciated.

Thanks,

 

Average of ratings: -
In reply to Alan Cherwinski

Re: JQuiz Images missing in Mod 2.2.2

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

Hi Alan,

> Could the TEMP be an issue?

Yes, it definitely looks that way.

> Any suggestions for fixing the problem

You can either put the JQuiz images where they are expected to be (i.e. within a "TEMP" folder in the files for that JQuiz HotPot activity), or you can modify the image paths within the JQuiz file so they don't use TEMP.

If those suggestions don't help you, please upload the JQuiz and its images to my server, so that we can look at it together.

regards
Gordon

In reply to Gordon Bateson

Re: JQuiz Images missing in Mod 2.2.2

by Alan Cherwinski -

Thank you Gordon,

Yesterday the uploaded images (via the file picker) were going to a TEMP folder. Today they are not. I have no explanation. I was not creating a folder.

I uploaded the quiz and images to your site and it work perfectly fine. I uploaded the quiz and images again to my site and it worked perfectly.

Thanks for your help, what causes the TEMP issue remains a mystery.

Alan

In reply to Alan Cherwinski

Re: JQuiz Images missing in Mod 2.2.2

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

Hi Alan,
thanks for reporting the matter of the mysterious TEMP folder, and how you solved it.

As you say, we don't know yet what caused the TEMP folder to appear, but if someone else gets one, then we'll be able to say "Aha, we've seen this before", and think about creating a tracker issue.

best regards
Gordon