## Quiz

### All short answers are marked wrong (gradedwrong)

This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.
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: -
Re: All short answers are marked wrong (gradedwrong)

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

Average of ratings: -
Re: All short answers are marked wrong (gradedwrong)
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: -
Re: All short answers are marked wrong (gradedwrong)

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: -