wooclap / moodle-mod_wooclap

Moodle plugin for Wooclap (https://www.wooclap.com/).
2 stars 5 forks source link

wooclap_get_completion_state have been deprecated #8

Open ndunand opened 3 years ago

ndunand commented 3 years ago

In Moodle 3.11, we have the following warnings:

*_get_completion_state() callback functions such as wooclap_get_completion_state have been deprecated and should no longer be used. Please implement the custom completion class mod_wooclap\completion\custom_completion which extends \core_completion\activity_custom_completion.

line 731 of /lib/completionlib.php: call to debugging()
line 652 of /lib/completionlib.php: call to completion_info->internal_get_state()
line 988 of /lib/completionlib.php: call to completion_info->update_state()
line 661 of /course/modlib.php: call to completion_info->reset_all_state()
line 166 of /course/modedit.php: call to update_moduleinfo()

See https://github.com/moodle/moodle/blob/master/lib/upgrade.txt#L125 for details about this error message.

lucaboesch commented 2 years ago

I'd like to second the report by @ndunand. In the end this results in activites continuing nagging "To Do: Complete the activity".