moodleou / moodle-mod_oublog

Alternative blog module for Moodle 2 (including course blogs)
31 stars 27 forks source link

Undefined function error in settings_task #140

Open micaherne opened 2 months ago

micaherne commented 2 months ago

I saw this error on running the adhoc tasks, which included an instance of settings_task from oublog:

Adhoc task failed: mod_oublog\task\settings_task,Call to undefined function mod_oublog\task\course_add_cm_to_section()
Backtrace:
* line 508 of /lib/classes/cron.php: call to mod_oublog\task\settings_task->execute()
* line 302 of /lib/classes/cron.php: call to core\cron::run_inner_adhoc_task()
* line 174 of /admin/cli/adhoc_task.php: call to core\cron::run_adhoc_tasks()

It looks like the settings_task class is missing an include of /course/lib.php

micaherne commented 2 months ago

Sorry this was on master, commit 8f14d1e8d