Quiz

 
 
Picture of Duane Habecker
Re: All short answers are marked wrong (gradedwrong)
 

Tim and Joseph!

Many thanks to the both of you for helping this non-programmer get our short answer questions working again! Here is what I did, thanks to Joseph's debugging suggestion and Tim's most recent post...

On question/type/shortanswer/question.php we commented out lines 105 - 108

+ if (function_exists('normalizer_normalize')) {
+ $regexp = normalizer_normalize($regexp, Normalizer::FORM_C);
+ $string = normalizer_normalize($string, Normalizer::FORM_C);
+ }

Our short answer questions have returned to behaving as expected.

Thank you so much for your efforts and for being willing to help out a stranger.

Grateful,

Duane

 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: All short answers are marked wrong (gradedwrong)
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

Thanks for the feedback. I created MDL-37746 for this.

 
Average of ratings: -
Picture of Jamie Pratt
Re: All short answers are marked wrong (gradedwrong)
Group DevelopersGroup Documentation writers
I checked the pmatch contrib question type code and it shouldn't be affected by this issue, it is already checking for the existence of the Normalizer before using it.
 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: All short answers are marked wrong (gradedwrong)
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

The shortanswer code also checks that Normalizer is present. The issue is that even when it exists, it may return null "When an error occurs". The only clue we have is that, according to one of the user comments on the docs, input that is not UTF-8 may be an error, but it is not clear.

 
Average of ratings: -