Question type Kprime(ETH) https://moodle.org/plugins/qtype_kprime started throwing the error "Call to undefined method qtype_kprime_edit_form::get_default_value()" when creating a new question.
Full debug trace at DEVELOPER level is:
Debug-Info:
Error code: generalexceptionmessage
Error code: generalexceptionmessage
- line 135 of /question/type/kprime/edit_kprime_form.php: Error thrown
- line 214 of /lib/formslib.php: call to qtype_kprime_edit_form->definition()
- line 113 of /question/type/edit_question_form.php: call to moodleform->__construct()
- line 217 of /question/type/questiontypebase.php: call to question_edit_form->__construct()
- line 202 of /question/question.php: call to question_type->create_editing_form()
Obviously /lib/formslib.php can not instanciate a kprime question which breaks the edit. It is possible that Kprime has not been used for some time and this error crept in with an update.
Here are the current versions:
- Moodle '3.9.14 (Build: 20220509)'
- Kprime '4 for Moodle 3.9+ (Transitional)'
- PHP 7.3.31
Anybody has a clue?