Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception - Serialization of 'Closure' is not allowed #218

Open
haietza opened this issue Sep 6, 2019 · 2 comments
Open

Exception - Serialization of 'Closure' is not allowed #218

haietza opened this issue Sep 6, 2019 · 2 comments

Comments

@haietza
Copy link

haietza commented Sep 6, 2019

Several of our courses that have questionnaires in use have questions with position numbers less than 1. When the course is restored to our current Moodle instance (3.6.5+ Build: 20190718) and a user tries to edit and save a question, the Exception - Serialization of 'Closure' is not allowed error is displayed. It looks like this is being generated by line 745 of locallib.php in questionnaire_check_page_breaks. The questions can be edited without error on previous versions of Moodle. Changing the position numbers of all questions to be greater than 0 resolves the issue in 3.6.5. However, it would be helpful if the position numbers were updated on Moodle upgrade, or if the positions less than 0 did not throw an exception. Thank you!

@mchurchward
Copy link
Contributor

What version of questionnaire are you seeing this with?

@haietza
Copy link
Author

haietza commented Oct 17, 2019

@mchurchward Version 3.6.1 (Build - 2019052400) 2018110101 of the questionnaire module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants