-
Bug
-
Resolution: Fixed
-
Minor
-
2.6.3
-
None
-
2.6
-
MOODLE_26_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
Moodle 2.6, qformat_hotpot release 2013.11.30 (15) version 2013113015.
Using Hot Potatoes JCloze tool, create a "Gap-fill" exercise containing text with some non-ascii characters, e.g. French. Make sure at least one gap contains a word with non-ascii characters.
In the Options->Configure Output options, check the option "Use dropdown list instead of text box in input".
Save the *.jcl file.
In a Moodle 2.6 course, go to the Questions bank->Import, check the "Hot Potatoes XML" format and import your *.jcl file.
You get error message: "Coding error detected, it must be fixed by a programmer: $result->noticeyesno no longer supported in save_question."
Fix:
In file yourmoodle/question/format/hotpot/format.php line 226
replace
$correcttext = $this->hotpot_prepare_str($source->xml_value($tags, $answer."['text'][0]'#'"));
with:
$correcttext = $source->xml_value($tags, $answer."['text'][0]'#'");
Please note that the error message does not seem related to the actual error!
- has been marked as being related by
-
CONTRIB-3431 When importing HotPotatoes quizzes, problem with non-ascii characters in response.
- Closed