Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined function error in settings_task #140

Open
micaherne opened this issue Apr 16, 2024 · 1 comment
Open

Undefined function error in settings_task #140

micaherne opened this issue Apr 16, 2024 · 1 comment

Comments

@micaherne
Copy link

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
Copy link
Author

Sorry this was on master, commit 8f14d1e8d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant