When I start the quiz the cloze question is not displayed. When I have finished the quiz, the question is displayed in the results.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | cloze-multilingual-1925614-11.patch | 4.27 KB | kimberleycgm |
When I start the quiz the cloze question is not displayed. When I have finished the quiz, the question is displayed in the results.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | cloze-multilingual-1925614-11.patch | 4.27 KB | kimberleycgm |
Comments
Comment #1
sivaji_ganesh_jojodae commentedYes! I have seen this bug too :)
Comment #2
Whylk commentedAny chance of getting this bug fixed in the nearby future? Would be great if possible.
Comment #3
antoinetooley commentedI have this problem too.
get these error messages when trying to see the question:
Warning: preg_replace() [function.preg-replace]: Unknown modifier 'p' in _cloze_get_question_chunks() (line 106
Notice: Undefined index: und in ClozeQuestion->getAnsweringForm() (line 162
get these errors at the end when it shows the question in the results:
Notice: Undefined index: und in ClozeQuestion->evaluateAnswer() (line 248
Notice: Undefined property: stdClass::$body in ClozeQuestion->evaluateAnswer() (line 248
Notice: Undefined index: und in ClozeResponse->getReportFormResponse() (line 420
Hope that might help a little.
looks like an awesome addition to quiz though would love to see this working!
Comment #4
antoinetooley commentedis there any update with this problem? this module has great potential!!
Comment #5
sivaji_ganesh_jojodae commentedNow I couldn't reproduce this bug. Looks like this is fixed due to recent change made in quiz.module regarding revisionising. I will revisit this issue if there is specific steps to reproduce this bug.
Comment #6
antoinetooley commentedUsing drupal 7, quiz version 4.x dev and Cloze 1.x dev I am still getting these some errors with the questions not displaying until the results page. What version of quiz are you using? thanks
Comment #7
sivaji_ganesh_jojodae commentedI'm using the same version here. Please share the steps to reproduce if you could.
Comment #8
antoinetooley commentedahh I just tried a fresh install on my local host and it works! guess i need to uninstall quiz and and cloze and reinstall then hopefully it will all work on my main site. Thanks for an awesome module ive been really excited to try this for a while now!
Comment #9
alex_21 commentedI confirm, but just disable and re enable the cloze module worked for me. Hope it will be useful for someone else.
Comment #10
stewestWe think we have found the error. Line 106 of the cloze.module
If you have html characters in the Question body, it causes the error. A possible solution is, for instance, to change line 106 '/' to '|'. But we believe that by setting the input format in the body, as a temporary measure also solves the problem.
Comment #11
kimberleycgmI know this is a very old issue - but in case anyone else is still finding this. The cause of this on our site was having multilingual enabled on the body field. The module only looks for LANGUAGE_NONE and therefore didn't display any data. I've attached a quick patch just replacing all instances of LANGUAGE_NONE with the current language. Not tested extensively yet, but seems to work so far.
Comment #12
kimberleycgmComment #13
avpaderno