Open bellanz80 opened 9 months ago
Same here at ETH Zürich. We'd be glad if this issue is fixed, as quiz_answersheets is now a required dependency for embeded questions (this was the case on our Moodle 4.3 testserver) when updating/switching to TinyMCE (https://github.com/moodleou/moodle-tiny_embedquestion).
This version runs without any errors on Moodle 4.2, 4.3 and 4.4: https://github.com/moodleou/moodle-quiz_answersheets/pull/40
Moodle 4.4 PHP8.1
Creating attempts using the Answer sheets report/"Create attempt" button should be visible when student does not have any attemptsWhen I am on the "Quiz 1" "quiz_answersheets > Report" page logged in as "teacher": Moodle exception: Exception - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42 More information about this error Exception - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42 More information about this error Debug info: Error code: generalexceptionmessage × Dismiss this notification * line 160 of /mod/quiz/report/answersheets/classes/report_display_options.php: TypeError thrown * line 42 of /mod/quiz/report/answersheets/classes/report_settings_form.php: call to quiz_answersheets\report_display_options::possible_user_info_visibility_settings() * line 48 of /mod/quiz/classes/local/reports/attempts_report_options_form.php: call to quiz_answersheets\report_settings_form->other_preference_fields() * line 217 of /lib/formslib.php: call to mod_quiz\local\reports\attempts_report_options_form->definition() * line 104 of /mod/quiz/classes/local/reports/attempts_report.php: call to moodleform->__construct() * line 52 of /mod/quiz/report/answersheets/report.php: call to mod_quiz\local\reports\attempts_report->init() * line 83 of /mod/quiz/report.php: call to quiz_answersheets_report->display() (Exception)
1 | Creating attempts using the Answer sheets report/"Create attempt" button should be visible when student does have finished attempts but less than max attempts .When I am on the "Quiz 1" "quiz_answersheets > Report" page logged in as "teacher": Moodle exception: Exception - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42 More information about this error Exception - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42 More information about this error Debug info: Error code: generalexceptionmessage × Dismiss this notification * line 160 of /mod/quiz/report/answersheets/classes/report_display_options.php: TypeError thrown * line 42 of /mod/quiz/report/answersheets/classes/report_settings_form.php: call to quiz_answersheets\report_display_options::possible_user_info_visibility_settings() * line 48 of /mod/quiz/classes/local/reports/attempts_report_options_form.php: call to quiz_answersheets\report_settings_form->other_preference_fields() * line 217 of /lib/formslib.php: call to mod_quiz\local\reports\attempts_report_options_form->definition() * line 104 of /mod/quiz/classes/local/reports/attempts_report.php: call to moodleform->__construct() * line 52 of /mod/quiz/report/answersheets/report.php: call to mod_quiz\local\reports\attempts_report->init() * line 83 of /mod/quiz/report.php: call to quiz_answersheets_report->display() (Exception)
1 | Creating attempts using the Answer sheets report/"Create attempt" button should not be visible when student have "in progress" attempt.When I am on the "Quiz 1" "quiz_answersheets > Report" page logged in as "teacher": Moodle exception: Exception - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42 More information about this error Exception - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42 More information about this error Debug info: Error code: generalexceptionmessage × Dismiss this notification * line 160 of /mod/quiz/report/answersheets/classes/report_display_options.php: TypeError thrown * line 42 of /mod/quiz/report/answersheets/classes/report_settings_form.php: call to quiz_answersheets\report_display_options::possible_user_info_visibility_settings() * line 48 of /mod/quiz/classes/local/reports/attempts_report_options_form.php: call to quiz_answersheets\report_settings_form->other_preference_fields() * line 217 of /lib/formslib.php: call to mod_quiz\local\reports\attempts_report_options_form->definition() * line 104 of /mod/quiz/classes/local/reports/attempts_report.php: call to moodleform->__construct() * line 52 of /mod/quiz/report/answersheets/report.php: call to mod_quiz\local\reports\attempts_report->init() * line 83 of /mod/quiz/report.php: call to quiz_answersheets_report->display() (Exception)
1 | Creating attempts using the Answer sheets report/"Create attempt" button should show dialog and create new attempt with highlightWhen I am on the "Quiz 1" "quiz_answersheets > Report" page logged in as "teacher": Moodle exception: Exception - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42 More information about this error Exception - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42 More information about this error Debug info: Error code: generalexceptionmessage × Dismiss this notification * line 160 of /mod/quiz/report/answersheets/classes/report_display_options.php: TypeError thrown * line 42 of /mod/quiz/report/answersheets/classes/report_settings_form.php: call to quiz_answersheets\report_display_options::possible_user_info_visibility_settings() * line 48 of /mod/quiz/classes/local/reports/attempts_report_options_form.php: call to quiz_answersheets\report_settings_form->other_preference_fields() * line 217 of /lib/formslib.php: call to mod_quiz\local\reports\attempts_report_options_form->definition() * line 104 of /mod/quiz/classes/local/reports/attempts_report.php: call to moodleform->__construct() * line 52 of /mod/quiz/report/answersheets/report.php: call to mod_quiz\local\reports\attempts_report->init() * line 83 of /mod/quiz/report.php: call to quiz_answersheets_report->display() (Exception)
1 | Creating attempts using the Answer sheets report/Cancel button in the dialogue really cancelsWhen I am on the "Quiz 1" "quiz_answersheets > Report" page logged in as "teacher": Moodle exception: Exception - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42 More information about this error Exception - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42 More information about this error Debug info: Error code: generalexceptionmessage × Dismiss this notification * line 160 of /mod/quiz/report/answersheets/classes/report_display_options.php: TypeError thrown * line 42 of /mod/quiz/report/answersheets/classes/report_settings_form.php: call to quiz_answersheets\report_display_options::possible_user_info_visibility_settings() * line 48 of /mod/quiz/classes/local/reports/attempts_report_options_form.php: call to quiz_answersheets\report_settings_form->other_preference_fields() * line 217 of /lib/formslib.php: call to mod_quiz\local\reports\attempts_report_options_form->definition() * line 104 of /mod/quiz/classes/local/reports/attempts_report.php: call to moodleform->__construct() * line 52 of /mod/quiz/report/answersheets/report.php: call to mod_quiz\local\reports\attempts_report->init() * line 83 of /mod/quiz/report.php: call to quiz_answersheets_report->display() (Exception)
Hi. moodle 4.3.2
Excepción - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42**
Experiencing the same on Moodle 4.5
Hi. moodle 4.3.2 Excepción - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42**
Experiencing the same on Moodle 4.5
Did you try this version https://github.com/moodleou/moodle-quiz_answersheets/pull/40 ?
Not yet, just working to identify issues with additional plugins on our test server. Solving the problems is the next phase. It would be nice to see #40 merged if it fixes the problem.
Hi. moodle 4.3.2
Excepción - quiz_answersheets\report_display_options::possible_user_info_visibility_settings(): Argument #1 ($cm) must be of type stdClass, cm_info given, called in [dirroot]/mod/quiz/report/answersheets/classes/report_settings_form.php on line 42**