M401 - Update question after quiz probs

M401 - Update question after quiz probs

Garth Brady -
回帖数:8
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?

回复Garth Brady

Re: M401 - Update question after quiz probs

Tim Hunt -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 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.)
回复Tim Hunt

Re: M401 - Update question after quiz probs

Garth Brady -
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 微笑 ? 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.
回复Garth Brady

Re: M401 - Update question after quiz probs

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

It needs to be 4.0.1+
回复Tim Hunt

Re: M401 - Update question after quiz probs

Garth Brady -
Particularly helpful Moodlers的头像
Yup,

Moodle 4.0.1+ (Build: 20220603)
回复Garth Brady

Re: M401 - Update question after quiz probs

Tim Hunt -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 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.)

回复Tim Hunt

Re: M401 - Update question after quiz probs

Garth Brady -
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!).
回复Garth Brady

Re: M401 - Update question after quiz probs

Tim Hunt -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 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.