M401 - Update question after quiz probs

M401 - Update question after quiz probs

by Garth Brady -
Number of replies: 8
Picture of Particularly helpful Moodlers

After my students wrote a quiz, I updated a multiple choice question so that two answers could be 100% correct as opposed to just 1 question being 100% correct.  I then hit 'Regrade All' and now all of the students results are identical:  they are all scoring 0 on this question and the question 'review' for these students shows all answers (A, B, C, D) in yellow text with the same answer:  "This choice was deleted after the attempt was started.".

The choice was not deleted...  I simply made 2 answers worth 100% instead of 1 answer.  Any idea how to proceed?

Average of ratings: -
In reply to Garth Brady

Re: M401 - Update question after quiz probs

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
That is a bug, and one that really should have been caught before the 4.0 release. Sorry.

I have created a bug report MDL-74752.

(I think that, in the fix, there is some chance that we can fix it in a way so that once you go to the fixed version, you can re-grade again, and the students attempts will work again. I hope.)
In reply to Tim Hunt

Re: M401 - Update question after quiz probs

by Garth Brady -
Picture of Particularly helpful Moodlers
Thanks so much - I really appreciate the attention to this matter.
In reply to Tim Hunt

Re: M401 - Update question after quiz probs

by Garth Brady -
Picture of Particularly helpful Moodlers
I noticed that updates for this issue were applied to the latest 4.0.1 so I installed the latest instance of Moodle and I still see the following for this question (even though the number of choices hasn't changed (I think))... I believe the hope was that the quiz could still be used and that data hadn't been lost... Do I just need to be more patient smile ? Not trying to be a pain, just wanting to make sure I haven't done something wrong on my end.

a. This choice was deleted after the attempt was started.

b. This choice was deleted after the attempt was started.

c. This choice was deleted after the attempt was started.

d. This choice was deleted after the attempt was started.
In reply to Garth Brady

Re: M401 - Update question after quiz probs

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Exactly which version did you install? https://download.moodle.org/releases/latest/

It needs to be 4.0.1+
In reply to Tim Hunt

Re: M401 - Update question after quiz probs

by Garth Brady -
Picture of Particularly helpful Moodlers
Yup,

Moodle 4.0.1+ (Build: 20220603)
In reply to Garth Brady

Re: M401 - Update question after quiz probs

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Ah! is this the question that was regraded before while the bug was present? In the end, I don't think that just applying this bug fix and regrading again will rescue it.

The following steps might, (but, please test on a single attempt first, in case it actually makes things worse).

  1. Edit the quiz, on the 'Questions' page, and set this question back to use fixed version 'v1' (or whatever version it was that the student saw originally).
  2. Re-grade the attempt again.
  3. Check: Review the attempt, and it should be back to what the student originally saw. If not, then we may be stuck.
  4. If that did work, then it will work to edit the quiz again, and set the version back to 'Always latest'.
  5. Then regrade again, and things should be fixed.

I hope.

(I am about to go on a much-needed holiday, so don't expect another reply for at least a week.)

Average of ratings: Useful (2)
In reply to Tim Hunt

Re: M401 - Update question after quiz probs

by Garth Brady -
Picture of Particularly helpful Moodlers
Thanks for your efforts here - enjoy your holiday! At this point, it looks like we're stuck:

"Coding error detected, it must be fixed by a programmer: The number of choices in the question has changed."

For your notes rolling forward, this message seems incorrect to me... I don't believe "The number of choices in the question has changed." In fact, I believe I just made 2 answers correct in a multiple choice instead of just one, both answers were present in the original question and no answers were added (I think!).
In reply to Garth Brady

Re: M401 - Update question after quiz probs

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Drat!

I can't immediately think why it is not working. I agree that the error message you are seeing does not seem relevant to what has actually happened.

I am just wondering how much information would be required for me to reproduce the error on my development system, so I could debug it properly, however, that seems non-trivial.