Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error to Moodle 4.3.2 #39

Open
bellanz80 opened this issue Feb 19, 2024 · 7 comments
Open

Error to Moodle 4.3.2 #39

bellanz80 opened this issue Feb 19, 2024 · 7 comments

Comments

@bellanz80
Copy link

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**

@samwitzig
Copy link

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).

@radwaahassan
Copy link

This version runs without any errors on Moodle 4.2, 4.3 and 4.4: #40

@aspark21
Copy link

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)

@timbahula-horizon
Copy link

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

@radwaaly
Copy link

radwaaly commented Nov 7, 2024

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 #40 ?

@timbahula-horizon
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants