catalyst / moodle-mod_subcourse

Subcourse module for Moodle
https://moodle.org/plugins/mod_subcourse
GNU General Public License v3.0
24 stars 41 forks source link

Moodle - Task scheduled #13

Closed angober closed 8 years ago

angober commented 8 years ago

Hi, when you deleted the plugin in Moodle, it doesn´t delete in database moodle (mdl_task_scheduled) the reference to task scheduled and when executed cron.php I see this notice:

PHP Notice: Failed to load task: \mod_subcourse\task\fetch_grades* line 268 of /lib/classes/task/manager.php: call to debugging()

mudrd8mz commented 8 years ago

Thanks for the report. How did you delete the module from Moodle?

angober commented 8 years ago

Instead of deleting it from the Moodle plugins administration, the code was removed directly from disk and when I accessed a Moodle was eliminated by saying that plugin not exist.

angober commented 8 years ago

It was this way because I´m working with SVN and the new code uploaded don´t have the code of the plugin

mudrd8mz commented 8 years ago

I am afraid this is not a bug then. You are not supposed to simply delete the plugin files from the disk and expect that Moodle will cope with it somehow. If the plugin was uninstalled properly via the administration interface, all the registered tasks, created database tables and other relics would be correctly removed. Moodle core intentionally keeps these data unless the plugin is uninstalled.

You should be able to fix your issue by putting the module files back, uninstalling the plugin from the admin interface and only then remove the files (if Moodle is not able to do it itself during the uninstallation procedure).

angober commented 8 years ago

Ok, thanks for all