This Moodle plugin allows teachers to hide questions that have been correctly answered in previous attempts. This can be useful in preventing students from seeing the correct answers and encourages them to attempt the questions again.
In the Quiz module, when attempting to "Start a new preview" while in preview mode, an error occurs: "A required parameter (attempt) was missing." This issue arises when the following options are enabled under Extra restrictions on attempts:
Questions auto grade
Hide questions on attempt
Additionally, the Each attempt builds on the last option under Question behaviour is also enabled.
The error message below
A required parameter (attempt) was missing
More information about this error
Debug info:
Error code: missingparam
Stack trace:
line 610 of /lib/moodlelib.php: moodle_exception thrown
line 304 of /mod/quiz/accessrule/hidecorrect/rule.php: call to required_param()
line 401 of /mod/quiz/accessmanager.php: call to quizaccess_hidecorrect->current_attempt_finished()
line 2614 of /mod/quiz/locallib.php: call to quiz_access_manager->current_attempt_finished()
line 70 of /mod/quiz/startattempt.php: call to quiz_validate_new_attempt()
Hi
In the Quiz module, when attempting to "Start a new preview" while in preview mode, an error occurs: "A required parameter (attempt) was missing." This issue arises when the following options are enabled under Extra restrictions on attempts:
The error message below
Moodle Version: 4.1