Quiz

 
 
Picture of Urs Hunkler
Cloze not working in Moodle 1.5.1
Group DevelopersGroup Particularly helpful Moodlers

Hi,

I suddenly get errors with the 1.5 cloze. I tried several cloze texts including the examples from the help, but got allways the same result. The same cloze works in Moodle 1.6 beta. What could that be?

Moodle Version: Moodle 1.5.1 (2005060210) from today
Quiz Module Version: 2005060301

Error: Missing question answers!

Unable to get options for questiontype 3 (id=30)

Davon profitieren Anleger, die ein
Warning: Invalid argument supplied for foreach() in
C:\Xampp\htdocs\moodle_15\moodle\mod\quiz\questiontypes\multichoice\questiontype.php
on line 230

Warning: Invalid argument supplied for foreach() in  
C:\Xampp\htdocs\moodle_15\moodle\mod\quiz\questiontypes\multianswer\questiontype.php
on line 290
 
 
Average of ratings: -
Picture of Urs Hunkler
Re: Cloze not working in Moodle 1.5.1
Group DevelopersGroup Particularly helpful Moodlers

This morning I reverted the quiz module to a version from July, 4. 2005 an the cloze is working again. So the error should be in the last updates.

See Bug #3724 - Cloze not working in Moodle 1.5.1

 
Average of ratings: -
Picture of Andrew Hu
Re: Cloze not working in Moodle 1.5.1
 
It may be more than Cloze I'm haviing the same situation with multichoice. I've checked the database and the answers are there and the id,s and references appear to be OK but the viewed html page is empty.
So is it breaking on retirval of data and just dropping out of the script.

 
Average of ratings: -
Picture of Gustav W Delius
Re: Cloze not working in Moodle 1.5.1
 
There was some new code in CVS that referred to a database field that did not yet exist. I have undone those changes in CVS so the bug is now gone.
 
Average of ratings: -
Picture of Urs Hunkler
Re: Cloze not working in Moodle 1.5.1
Group DevelopersGroup Particularly helpful Moodlers

Great Gustav, thanks a lot.

  • When I updated my installation the Bug #3617 I patched this morning came back. Could you please also look at this one? A possible solution is documented with the bug description.

  • And in Bug #3731 is documented that the Disc. Coeff. is -999.00 instead of -1 it should be as described in the help file.

Thanks for the much improved quiz module in Moodle 1.5
Urs

 
Average of ratings: -
Picture of Stéphane Goussault
Re: Cloze not working in Moodle 1.5.1
 
Hello,

The latest moodle 1.5.1+ adds shlash in cloze question before the apostrophe (')

Have you notice this ?

Stephane
 
Average of ratings: -
Picture of Julian Sedding
Re: Cloze not working in Moodle 1.5.1
 
Can you please try the newest CVS version? I hope that I managed to fix this problem now.

Julian
 
Average of ratings: -
Picture of Colin Campbell
Re: Cloze not working in Moodle 1.5.1
 
We are still using the stable 1.4 version of Moodle and we have this problem with Cloze where the apostrophes are either not recognised or interpreted as having a slash. I originally thought this was an issue with the German keyboard - but from this forum I guess we need to update the Cloze module. Will the latest cvs function properly with the 1.4 version of moodle?
 
Average of ratings: -
Picture of Gustav W Delius
Re: Cloze not working in Moodle 1.5.1
 
The Moodle 1.5 quiz module will not work under Moodle 1.4. So I am afraid you will have to live without apostrophes a little longer until you upgrade to 1.5 sad.
 
Average of ratings: -
Picture of Colin Campbell
Apostrophe on the German keyboard is not recognised in quiz
 
I have returned to this problem because we shall upgrade to the latest stable moodle in January and having tested this problem on client sites and my own upgraded site I have discovered that the condition still exists.

Using a German keyboard to answer short form quiz questions, you cannot enter an apostrophe that will be recognised and hence you can never get the correct answer.
For example
"The reason I'm calling" always produces a wrong answer - even if I cut and paste it from the quiz! If I switch over to an English keyboard setting it makes no difference. However if I change the answer to "The reason I am calling" everything works fine. Can anyone help me with this puzzle?
 
Average of ratings: -