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 does not work (Moodle 4.0) #208

Closed jorgenfinsveen closed 2 years ago

jorgenfinsveen commented 2 years ago

https://iirmoodle-dev.it.ntnu.no/mod/capquiz/edit.php?id=5&qpage=0

Tested with both safari and opera. Safari shows blank page while Opera shows HTTP ERROR 500

Suspected error location: capquiz/edit.php

Discovered:

BUTTON WHICH TRIGGERS THE ERROR

Skjermbilde 2022-05-30 kl  12 23 49

ERROR

Skjermbilde 2022-05-30 kl  12 27 31
hgeorgsch commented 2 years ago

See the developer doc's on question bank changes: https://docs.moodle.org/dev/Moodle_4.0_developer_update#Question_bank_changes

BlackBlueGreens commented 2 years ago

HTTPS 500 ERROR code is now solved, the page is now mostly left with 'deprecation' ERROR's.

BlackBlueGreens commented 2 years ago

The Page does load, but there are ERRORS left and some functionality has to be added, along side restructuring of the page

BlackBlueGreens commented 2 years ago

A new Error

× Debug info: Error code: mixedtypesqlparam × 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$79->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()

Noted but likely unrelated:

moodle-mod_capquiz --> classes --> output --> renderer.php Line 33 PhpStorm suggests:

Other code editors do not display an error

BlackBlueGreens commented 2 years ago

.

hgeorgsch commented 2 years ago

Obvious errors have been fixed. Testing is needed. New bugs should be reported separately.