Jump to content

Depracted Functions


eediaz

Recommended Posts

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 by eediaz
Link to comment
Share on other sites

  • Moderators
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...