Error a required parameter (attempt) was missing in questionnaire

Error a required parameter (attempt) was missing in questionnaire

by Josué González -
Number of replies: 4

hello everyone, lately some users present the error while they are taking the questionnaire.


Moodle 3.9.1

Help!, please, thanks. 

Attachment WhatsApp Image 2020-08-22 at 00.03.33.jpeg
Average of ratings: -
In reply to Josué González

Re: Error a required parameter (attempt) was missing in questionnaire

by Thorsten Bartel -
Picture of Core developers
Hello Josué,

we have encountered the same problem recently and the provided error message was not very helpful to us.
Upon encountering it a second time, we thought it might have to do with quiz size...

And it has. At least in our case, when a quiz has more than a certain amount of questions on one page, certain required parameters get cut off when the results are submitted.

So our solution was: Divide the (single page) quiz into multiple pages. Hope this helps.

Cheers
Thorsten
Average of ratings: Useful (1)
In reply to Josué González

Re: Error a required parameter (attempt) was missing in questionnaire

by ali rosta -
I'm having the same problem. But it doesn't show for all students only for a few. So I think is not related to question length as mentioned by Thorsten.
In reply to ali rosta

Re: Error a required parameter (attempt) was missing in questionnaire

by Alexander Lebeth -
We have encountered the same issue. The above mentioned workaround, i.e. dividing the quiz in smaller parts, isn't an option for us. Hopefully, the issue gets fixed soon: https://tracker.moodle.org/browse/MDL-38291
In reply to Alexander Lebeth

Re: Error a required parameter (attempt) was missing in questionnaire

by Thorsten Bartel -
Picture of Core developers
Note that we did not necessarily split the quiz into multiple activities but simply went from a quiz that contains all questions on one page to a multi-page quiz (with a limited number of questions per page).

@ali: If your quiz size is very close to the edge case for this error, it might be that only students that answer every question are confronted with the error (as all questions on the page are answered). Meanwhile those that leave some questions unanswered can turn in their quiz just fine. If you are using random question groups, this could also contribute, as some students are presented with questions that have more answer fields, requiring more parameters to be submitted to the server.