eediaz Posted December 17, 2019 Report Share Posted December 17, 2019 (edited) Hello i recently download the Exam Center Module for my VA, and when i instaled im recibin this Deprecated: Non-static method ExamsData::get_setting_info() should not be called statically, assuming $this from incompatible context in /home/u972563037/public_html/core/modules/Exams/Exams.php Deprecated: Non-static method ExamsData::check_exam_assigned() should not be called statically, assuming $this from incompatible context in /home/u972563037/public_html/core/templates/exams/exam_list.php Also when i request an exam i recibe this other error, warning in this case Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Exams' does not have a method ''.url('' in /home/u972563037/public_html/core/classes/MainController.class.php on line 218 Edited December 17, 2019 by eediaz Quote Link to comment Share on other sites More sharing options...
Moderators ProSkyDesign Posted December 18, 2019 Moderators Report Share Posted December 18, 2019 21 hours ago, eediaz said: Hello i recently download the Exam Center Module for my VA, and when i instaled im recibin this Deprecated: Non-static method ExamsData::get_setting_info() should not be called statically, assuming $this from incompatible context in /home/u972563037/public_html/core/modules/Exams/Exams.php Deprecated: Non-static method ExamsData::check_exam_assigned() should not be called statically, assuming $this from incompatible context in /home/u972563037/public_html/core/templates/exams/exam_list.php Also when i request an exam i recibe this other error, warning in this case Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Exams' does not have a method ''.url('' in /home/u972563037/public_html/core/classes/MainController.class.php on line 218 where did yoy buy this module? the 2 deprecated errors is because you are calling a function staticlly (Example::example()) but in the Model (ExamsData.class.php) the functions aren't static... you should change the public function by public static function. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.