Visvanath Ratnaweera
Posts made by Visvanath Ratnaweera
To the Quiz insiders
Visiting the question bank oursite/question/edit.php?courseid=94 a teacher gets (under maximum debugging):
Error code: codingerror×Dismiss this notification
- line 1327 of /lib/questionlib.php: coding_exception thrown
- line 90 of /question/classes/bank/search/category_condition.php: call to question_categorylist()
- line 77 of /question/classes/bank/search/category_condition.php: call to core_question\bank\search\category_condition->init()
- line 814 of /question/classes/local/bank/view.php: call to core_question\bank\search\category_condition->__construct()
- line 773 of /question/classes/local/bank/view.php: call to core_question\local\bank\view->wanted_filters()
- line 60 of /question/edit.php: call to core_question\local\bank\view->display()
The "More information" link points to https://docs.moodle.org/401/en/error/debug/codingerror.
The teacher says, she wanted to open a sub-category but deleted something by mistake.
Any insights on what could have gone wrong and how to repair the QB? (Have backups in the worst case, but need to know how this happened and not to lose a days work.) I'm trying to follow the steps the teacher has taken.
Moodle 4.1.18 (Build: 20250414), PHP 8.1.31, MariaDB 10.11.6
This discussion contains some background information: [mod_hvp] How to produce content in other (Indic) languages?
Answering my own question:
Yes, https://github.com/catalyst/moodle-tool_encoded does the job. Ran on a clone and reduced the DB dump by 500 MB.
Still we decided to postpone running it on the production server. We'll revisit when the people are ready to test their courses.
Thread CLOSED.
Things moved too fast! Let me start from the beginning.
- No authentication
The user has to go through two screens:



