HotPot quiz works once only in Moodle 2

HotPot quiz works once only in Moodle 2

Peter Ruthven-Stuart發表於
Number of replies: 11
Plugin developers的相片

Hello Gordon,

We've just recently upgraded to Moodle 2 and have discovered that HotPot quizzes in our site work once only. When trying to do a JQUIZ a second time, nothing happens when clicking on possible answers, and with JCLOZEs nothing happens when clicking on the [check] button. Renaming the quiz (i.e. the activity name) seems to fix the problem, but again on attempting a quiz for a second time the same problem occurs.

Another curious thing is that when clicking on the [next] or [back] buttons, the quiz starts to creep up the page, first hiding the breadcrumbs then some of the quiz. This 'quiz creep' seems to be theme related: it happens with Binarius and Brick (both standard themes) but not with The plain white Standard theme.

I've uploaded a HotPot to your Moodle test site:

http://bateson.kanazawa-gu.ac.jp/moodle/20/mysql/mod/hotpot/attempt.php?id=181

and it works fine 驚訝的

anyway, you can download a 9MB FLV screen video of the problem here. The problem quiz that you see in the video is the same one that I uploaded to your test site.

If necessary, I'd be happy to give you access to our site.

Our server environment is:

  • Moodle 2.0.2+ (Build: 20110323)
  • php 5.3.3
  • MySQL 5.5.9
  • HotPot module, March 27th 2011 version
評比平均分數: -
In reply to Peter Ruthven-Stuart

Re: HotPot quiz works once only in Moodle 2

Sergi Mola發表於

It's exactly the same that's happening to me:

http://moodle.org/mod/forum/discuss.php?d=172624

In reply to Sergi Mola

Re: HotPot quiz works once only in Moodle 2

Gordon Bateson發表於
Core developers的相片 Peer reviewers的相片 Plugin developers的相片

Probably there is a problem with the caching. Thinking about it, the HotPot cache on my server is "off" all the time (because I am often testing new scripts), so a short-term workaround would be to switch the HotPot cache off on your site. (Settings -> Site admin -> Plugins -> Activity modules -> HotPot).

In the meantime, I will enable the cache on my server and investigate.

thanks
Gordon

In reply to Gordon Bateson

Re: HotPot quiz works once only in Moodle 2

Sergi Mola發表於

Thanks for the workaround  Gordon.

It's working fine now with the cache disabled.

In reply to Gordon Bateson

Re: HotPot quiz works once only in Moodle 2

Peter Ruthven-Stuart發表於
Plugin developers的相片

Gordon,

Thank you very much for the quick response.

> a short-term workaround would be to switch the HotPot cache off

That worked. Thanks.滿意

The problem of 'quiz creep' still exists. Of the 6 possible "Navigation" settings, the ones in which quizzes do not move up the page are:

  • Moodle Navigation frame
  • Embedded Webpage
  • Original navigation aids
  • None

and the trouble causers are:

  • Standard Modle navigation bars
  • Top Moodle navigation bar only

Thanks for your hard work.

In reply to Peter Ruthven-Stuart

Re: HotPot quiz works once only in Moodle 2

Gordon Bateson發表於
Core developers的相片 Peer reviewers的相片 Plugin developers的相片

Hi Peter,
thanks again for the the detailed report of these issues. I had a deeper look at them today.

I enabled the HotPot cache, but was unable to reproduce the error you got when viewing the quiz for the second time. The "FUN" quiz you kindly prepared on my server display OK, so I am not sure how we should proceed with that investiagation ...

However, when I switched the theme to Brick I was able to reproduce the "creep" error. I believe it is caused by the javascript which stretches the page when a new question is displayed, in order to ensure that the full question is viewable. It seems that some themes have a slightly different underlying structure than the standard theme, so that HotPot javascript does not do the right thing. I will be able to fix that in due course.

thanks for your patience
Gordon

In reply to Gordon Bateson

Re: HotPot quiz works once only in Moodle 2

Peter Ruthven-Stuart發表於
Plugin developers的相片

Hello,

Just a quick update. I've installed the latest version of the HotPot module (Fri 22nd Apr 2011), and a colleague has discovered a similar problem with a JMix quiz. The words and phrases that need to be dragged up to the three lines and placed in  the right order are all hidden when using Navigation = Standard Moodle Navigation Bars or Top Moodle navigation bar only. Occasionally, when using these settings the quiz displays as expected, but usually not.

Navigation = Moodle navigation frame, seems to work OK but doesn't look so good..

"It seems that some themes have a slightly different underlying structure than the standard theme,"

Yes, it does seem that the so called standard themes in Moodle 2 behave rather oddly. See MDL-27294 and MDL-27252

Update: just noticed that when using "Navigation = Moodle navigation frame", the page title becomes:

<div class="text_to_html"><a class="autolink" title="Quiz 1: iPhone versus iPod Touch" href="http://vle.c.fun.ac.jp/moodle/mod/hotpot/view.php?id=18141">Quiz 1: iPhone versus iPod Touch</a></div>


it should be just "Quiz 1: iPhone versus iPod Touch".

附件 Jmix and Standard Moodle Navigation Bars.png
In reply to Peter Ruthven-Stuart

Re: HotPot quiz works once only in Moodle 2

Gordon Bateson發表於
Core developers的相片 Peer reviewers的相片 Plugin developers的相片

Dear Peter,
you may have seen from the thread that Sergi started, that I have fixed the issue with HotPots in Moodle 2.0 not working for the second and subsequent attempts when the HotPot cache is enabled.

Once you have installed the following version of the HotPot module, you can enable the HotPot cache and the HotPot activities will be generated more quickly and with less load on the server.

I have not fixed the "creep" issue yet - but I intend to.

The title issue is interesting. Looks like the Moodle filters are converting the title to a link to this activity. That's not what we want. However, we do want the title to go through the filters, in case it is a multilingual title. I will have a think about that ...

best regards
Gordon

In reply to Gordon Bateson

Re: HotPot quiz works once only in Moodle 2

Peter Ruthven-Stuart發表於
Plugin developers的相片

"...I have fixed the issue with HotPots in Moodle 2.0 not working for the second and subsequent attempts..."

Thanks Gordon, I''ll give the new version a spin in the next few days.

In reply to Peter Ruthven-Stuart

Re: HotPot quiz works once only in Moodle 2

Rob Monk發表於

We are having similar issues.

I have disabled cacheing so now the quizzes seem to work? but I'm still getting an error in IE.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; eSobiSubscriber 2.0.4.16; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C)
Timestamp: Thu, 9 Jun 2011 07:10:54 UTC


Message: '1' is null or not an object
Line: 42
Char: 1600
Code: 0
URI: http://student.drouinsc.vic.edu.au/moodle/theme/yui_combo.php?3.2.0/build/yui/yui-base-min.js&3.2.0/build/oop/oop-min.js&3.2.0/build/dom/dom-min.js&3.2.0/build/yui/yui-later-min.js&3.2.0/build/event-custom/event-custom-base-min.js&3.2.0/build/event/event-base-min.js&3.2.0/build/pluginhost/pluginhost-min.js&3.2.0/build/event/event-delegate-min.js&3.2.0/build/node/node-min.js&3.2.0/build/yui/get-min.js&3.2.0/build/loader/loader-min.js

 What does all this mean?

In reply to Rob Monk

Re: HotPot quiz works once only in Moodle 2

Gordon Bateson發表於
Core developers的相片 Peer reviewers的相片 Plugin developers的相片

> We are having similar issues.

Similar to what? The "second attempt doesn't work" issue or the "page creep" issue? The former you can fix by updating to the latest version of HotPot module for Moodle 2.0. The latter you can fix by sticking with the standard theme - or something very similar - for the time-being.

Thanks for reporting the IE error. It comes from some javascript connected with the sidebar menu. You can remove it for the time-being by setting the "Navigation" for the HotPot activity to "Top Moodle navigation bar only (no side bars)". I will try to fix that in due course.

Gordon

In reply to Gordon Bateson

Re: HotPot quiz works once only in Moodle 2

Gordon Bateson發表於
Core developers的相片 Peer reviewers的相片 Plugin developers的相片

Hello again Peter,
long time no see ! I last week I was finally able to clear up the issue of HotPot JQuiz quizzes "creeping" up the page with the buttons for next and previous questions were pressed.

I have confirmed the new scripts don't creep with "Brick" and "Fusion" themes. As always you can download the latest version of the from here:

best regards
Gordon