The following Undefined index notices come up when we try to take quiz which does not have any questions:-
No questions were found. Please assign questions before trying to take this Quiz.
Notice: Undefined index: quiz_12 in quiz_take_quiz() (line 2166 of /home/xxx/yyy/zzz/sites/all/modules/quiz/quiz.module).
Notice: Undefined index: quiz_12 in quiz_take_quiz() (line 2167 of /home/xxx/yyy/zzz/sites/all/modules/quiz/quiz.module).
Notice: Undefined index: quiz_12 in quiz_take_quiz() (line 2179 of /home/xxx/yyy/zzz/sites/all/modules/quiz/quiz.module).
Notice: Undefined index: quiz_12 in quiz_take_quiz() (line 2185 of /home/xxx/yyy/zzz/sites/all/modules/quiz/quiz.module).
Notice: Undefined index: quiz_12 in quiz_take_quiz() (line 2189 of /home/xxx/yyy/zzz/sites/all/modules/quiz/quiz.module).

Also, there is another notice that comes up when we delete added question from the quiz and hit save.
Notice: Undefined property: stdClass::$auto_update_max_score in _quiz_add_questions_to_form() (line 1069 of /home/xxx/yyy/zzz/sites/all/modules/quiz/quiz.admin.inc).

Please find the patch to resolve both the above notices.

CommentFileSizeAuthor
Take_Quiz_Notices.patch2.87 KBaadityawalawalkar
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

djdevin’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

This issue is being closed because it was filed against a version that is no longer supported.

If the issue still persists in the latest version of Quiz, please open a new issue.