KQMATH / moodle-mod_capquiz

:mushroom: Computer adaptive practice activity module for Moodle
https://moodle.org/plugins/mod_capquiz
GNU General Public License v3.0
4 stars 5 forks source link

CAPQuiz questions page ERROR: Mixed types of sql query parameters!! #211

Closed BlackBlueGreens closed 2 years ago

BlackBlueGreens commented 2 years ago

Questions page throws ERROR code: mixedtypesqlparam alongside a dml_exception exception thrown https://iirmoodle-dev.it.ntnu.no/mod/capquiz/edit.php?id=6&qpage=0

Stack trace: line 923 of /lib/dml/moodle_database.php: dml_exception thrown line 1005 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->fix_sql_params() line 1671 of /lib/dml/moodle_database.php: call to pgsql_native_moodle_database->get_records_sql() line 42 of /question/editlib.php: call to moodle_database->get_record_sql() line 316 of /question/editlib.php: call to get_module_from_cmid() line 125 of /mod/capquiz/classes/output/question_bank_renderer.php: call to question_build_edit_resources() line 72 of /mod/capquiz/classes/output/question_bank_renderer.php: call to mod_capquiz\output\question_bank_renderer->setup_question_edit() line 86 of /mod/capquiz/classes/output/question_bank_renderer.php: call to mod_capquiz\output\question_bank_renderer->create_view() line 238 of /mod/capquiz/classes/output/renderer.php: call to mod_capquiz\output\question_bank_renderer->render() line 108 of /mod/capquiz/classes/output/renderer.php: call to class@anonymous/var/www/moodle/mod/capquiz/classes/output/renderer.php:214$10d->render() line 242 of /mod/capquiz/classes/output/renderer.php: call to mod_capquiz\output\renderer->display_tabbed_view() line 45 of /mod/capquiz/edit.php: call to mod_capquiz\output\renderer->display_question_list_view()

hgeorgsch commented 2 years ago

This seems to be gone, but further testing is needed.