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

'object' class has been deprecated #2

Closed
mudrd8mz opened this issue Jan 16, 2017 · 2 comments
Closed

'object' class has been deprecated #2

mudrd8mz opened this issue Jan 16, 2017 · 2 comments

Comments

@mudrd8mz
Copy link

'object' class has been deprecated, please use stdClass instead.

line 71 of /lib/setuplib.php: call to debugging()
line 105 of /question/type/wq/step.php: call to object->__construct()
line 193 of /question/type/shortanswerwiris/question.php: call to qtype_wirisstep->set_var()
line 67 of /question/type/shortanswerwiris/question.php: call to qtype_shortanswerwiris_question->get_matching_answer()
line 109 of /question/behaviour/deferredfeedback/behaviour.php: call to qtype_shortanswerwiris_question->grade_response()
line 57 of /question/behaviour/deferredfeedback/behaviour.php: call to qbehaviour_deferredfeedback->process_finish()
line 1233 of /question/engine/questionattempt.php: call to qbehaviour_deferredfeedback->process_action()
line 1271 of /question/engine/questionattempt.php: call to question_attempt->process_action()
line 839 of /question/engine/questionusage.php: call to question_attempt->finish()
line 167 of /question/preview.php: call to question_usage_by_activity->finish_all_questions()

Replacing the $gc = new Object(); with $gc = new stdClass(); seems to fix the issue for me.

@mcagigas-at-wiris
Copy link
Contributor

David,
The new release (3.48.1.1020) fix the issue.

@AlexJB777
Copy link

I get a similar error using Moodle 3.2.7 and php 7.1.26, mysql 5.7.25 on Linux
The question is where (what dir and file) can I change this?
"Replacing the $gc = new Object(); with $gc = new stdClass(); seems to fix the issue for me."
Thanks

'object' class has been deprecated, please use stdClass instead.
line 71 of /lib/setuplib.php: call to debugging()
line 176 of /blocks/configurable_reports/locallib.php: call to object->__construct()
line 185 of /blocks/configurable_reports/locallib.php: call to urldecode_recursive()
line 185 of /blocks/configurable_reports/locallib.php: call to urldecode_recursive()
line 226 of /blocks/configurable_reports/locallib.php: call to urldecode_recursive()
line 93 of /blocks/configurable_reports/reports/sql/report.class.php: call to cr_unserialize()
line 69 of /blocks/configurable_reports/viewreport.php: call to report_sql->create_report()

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

3 participants