I've been developing a plugin with an hoc task
I have followed the ad hoc tutorial in https://docs.moodle.org/dev/Task_API.
- Created file take_over_the_world.php inside /myplugin/classes/tasks
- imported using: require_once './classes/tasks/take_over_the_world.php';
- Instantiated the task inside the plugin: $domination = new take_over_the_world(); ,etc...
But i can't see my task anywhere, except in "path/to/moodle/admin/cron.php?password=xxx" where i can see the following error:
++ Failed to load task: \take_over_the_world ++
* line 292 of /lib/classes/task/manager.php: call to debugging()
* line 595 of /lib/classes/task/manager.php: call to core\task\manager::adhoc_task_from_record()
* line 184 of /lib/cronlib.php: call to core\task\manager::get_next_adhoc_task()
* line 76 of /lib/cronlib.php: call to cron_run_adhoc_tasks() * line 81 of /admin/cron.php: call to cron_run()