Quiz auto submit not working as expected

Quiz auto submit not working as expected

by Alex Rowe -
Number of replies: 5

Moodle 3.5

In a recent quiz, we had some user's attempts submitted after the close time which resulted in the end of their attempt not being saved properly. This shouldn't have been possible with the current configuration and I can't replicate this in staging but is there something else to look at?

Quiz start: 8:59
Quiz end: 11:00
Time limit: 121 minutes
When time expires: open attempts are submitted automatically

Moodle quiz auto save was set to every 3 minutes. Moodle late submission grace period was also 3 minutes.

The user started at 9:02:21 and their finish time is 11:03:23.

According to our logs, the last auto save was 10:54:50 which matches up with the code of not doing an autosave within (2x the autosave period) before the end time.

This exam was invigilated so we can verify what happened on the student's screen.

The final question was an essay question, at 10:54 (on their clock) the content of the essay field matches what they have already typed and the content of their answer in the quiz review. They then continued to type up until 11:03 (on their clock) and the quiz was automatically submitted. Given it was past the close time + grace period, the content from 10:54-11:03 was discarded.

I have run multiple tests on a dev server with changing time limits, close times, hiding blocks (adaptable theme) and different browsers, but the timer is always correct (using the lowest value of time limit and time until close) and the quiz always submits automatically (even with blocks hidden).

Is there anything else I'm missing here as I can't replicate the behaviour I've seen?

Average of ratings: -
In reply to Alex Rowe

Re: Quiz auto submit not working as expected

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
It seems that you have already investigated this quite thoroughly, so I cannot add much.

The improvement in MDL-58926 (coming in 3.10) can probably only help with this sort of situation.

I also wonder if you were hit by MDL-43428, but that was fixed in Moodle 3.5.3. (Are you really using 3.5, and not Moodle 3.5.14 or something?)

That is all I can think of right now.
In reply to Tim Hunt

Re: Quiz auto submit not working as expected

by Alex Rowe -
Hi Tim,

Looks like MDL-43428 is what we were after. I hadn't pulled that fix yet into our Moodle repository.

For MDL-58926, is that going to be backported to 3.9?
In reply to Alex Rowe

Re: Quiz auto submit not working as expected

by Shufeng Bai -
We also experienced a similar problem a few times in the past few months. We are hosting on MoodleCloud.com
Did you eventually figure out what happened? Did you fix the problem? I looked at MDL-43428 Mr. Hunt referred to, but it doesn't seem to be the exact problem because I don't think you have teacher changed due date/time while the student was doing the quiz.
In reply to Shufeng Bai

Re: Quiz auto submit not working as expected

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
If you are using MoodleCloud, then your site will be properly updated, and you will have both those fixes.

To have any idea what happened in your case, we need exact details of what happened.