- πΊπΈUnited States smustgrave
With D7 EOL soon triaging the D7 quiz queue. If still having the issue for 7.0.x please reopen
I wanted to add more than the standard number of rows for a matching question.
So I edited the content type to allow 8 rows.
When running the quiz, and encountering a matching question with a large number of rows, after hitting next button a large number of errors would display for 'undefined offset error'
Line 491, matching.classes.inc
I don't know PHP so can't address the underlying issue, but have found a workaround by suppressing error reporting.
error_reporting(0); //adedd by PT 1/11/19 to suppress spurious error messages in below
foreach ((array) $user_answers as $key => $value) {
if ($value != 0 && $correct_answers[$key]['answer'] == $correct_answers[$value]['answer']) {
$correct_answer++;
}
elseif ($value == 0 || $value == 'def') {
}
else {
$wrong_answer++;
}
}
error_reporting(1); //adedd by PT 1/11/19 to suppress spurious error messages in above
Closed: outdated
6.0
Code - Matching
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
With D7 EOL soon triaging the D7 quiz queue. If still having the issue for 7.0.x please reopen