Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.2.1
-
Component/s: Quiz
-
Labels:
-
Environment:Centos 5.7 and 6.2 x86_64, Postgresql 8.4 and 9.1, php 5.3, apache 2.2
-
Database:PostgreSQL
-
Testing Instructions:
-
Workaround:
-
Affected Branches:MOODLE_22_STABLE
-
Fixed Branches:MOODLE_21_STABLE, MOODLE_22_STABLE
-
Pull from Repository:
-
Pull Master Branch:
-
Pull Master Diff URL:
Description
Description of the problem
-------------------------------------------
After upgrading from moodle 2.1.1 to 2.2.1+ (Build: 20120213), students attempting to solve a quiz where all questions are graded with 0 points are faced with an error message:
"Cannot start an attempt at this quiz. The quiz is supposed to be graded but there are no questions in the quiz that are worth any marks"
Stack trace:
line 73 of /mod/quiz/locallib.php: moodle_exception thrown
line 148 of /mod/quiz/startattempt.php: call to quiz_create_attempt()
The quiz in question is used for giving the students opportunities to self-test their progress and should not be graded. It seems that prior to the upgrade, this could be achieved by allocating 0 points for each question.
Exprected behaviour
-------------------------------------------
It would be nice to either provide an option to keep the quiz ungraded or to warn the administrator during upgrade about this change in behaviour.
Note:
-------------------------------------------
We upgraded directly from 2.1.1 to 2.2.1+. It seems that the Question Engine update was done while performing this update, because a backup from before the update lists
"This appears to be a site that has not yet been upgraded to include the new question engine."
while the same helper plugin returns for the 2.2.1+ site
"This appears to be a site that has been upgraded to include the new question engine."
(sorry if this is common knowledge)
Attachments
Issue Links
- is duplicated by
-
MDL-32051 get better feedback when 'cannotstartmissingquestion' happens
-
- Closed
-