We encountered a strange behaviour of Moodle 3.0.4+ when trying to add section headings to quizzes and wondered, whether anyone encountered the same behaviour or has any idea how to solve it.
When having the last 3 questions of a quiz with at least 12 questions on the same page and trying to add a section heading to these 3 last questions on the same page, the section heading was not created. When we turned debugging on, we received the error message attached. If we then went back to the quiz and tried to add the section heading to the last three questions on the same page again, the section heading was created without any error message appearing.
We did some further testing which revealed that
- The error message occurs with different kinds of question types
- We could sometimes but not always reproduce the behaviour with quizzes with 11 questions
- We could never reproduce the behaviour with quizzes with 10 or less questions
- We could reproduce the behaviour when adding section headings to pages with several questions in the middle of the quiz AS LONG AS the page contained question number 10
To us it seems that there is a problem with the shift from single-digit question numbers to double-digit question numbers.
Did anyone else encounter the same or a similar behaviour? Has anyone an idea how to solve the problem?
Cheers,
Antonia and Kristina