-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Dear developer,
moodle 5.1 throws the following exception (error) if CLI commands "upgrade.php" or "ad_hoc.tasks" and "scheduled_tasks.php" are run with the option "--list".
Here an example:
`# php admin/cli/scheduled_task.php --list
== List of scheduled tasks (https://xxx ==
Default exception handler: error/generalexceptionmessage Debug:
Error code: generalexceptionmessage
$a contents: Failed opening required '/course/lib.php' (include_path='/srv/data/vhosts/xxx/www/public/lib/pear:.:/usr/share/php')
- line 27 of /blocks/exacomp/lib/lib.php: Error thrown
- line 19 of /blocks/exacomp/inc.php: call to require_once()
- line 23 of /blocks/exacomp/classes/task/clear_exacomp_weekly_schedule.php: call to require_once()
- line 235 of /lib/classes/component.php: call to include_once()
- line ? of unknownfile: call to core\component::classloader()
- line 413 of /lib/classes/task/manager.php: call to class_exists()
- line 651 of /lib/classes/task/manager.php: call to core\task\manager::scheduled_task_from_record()
- line 89 of /srv/data/vhosts/xxx/www/admin/cli/scheduled_task.php: call to core\task\manager::get_all_scheduled_tasks()
!!! error/generalexceptionmessage !!!
Debug info:
Error code: generalexceptionmessage
$a contents: Failed opening required '/course/lib.php' (include_path='/srv/data/vhosts/xxxwww/public/lib/pear:.:/usr/share/php')
Stack trace: * line 27 of /blocks/exacomp/lib/lib.php: Error thrown
- line 19 of /blocks/exacomp/inc.php: call to require_once()
- line 23 of /blocks/exacomp/classes/task/clear_exacomp_weekly_schedule.php: call to require_once()
- line 235 of /lib/classes/component.php: call to include_once()
- line ? of unknownfile: call to core\component::classloader()
- line 413 of /lib/classes/task/manager.php: call to class_exists()
- line 651 of /lib/classes/task/manager.php: call to core\task\manager::scheduled_task_from_record()
- line 89 of /srv/data/vhosts/xxx/www/admin/cli/scheduled_task.php: call to core\task\manager::get_all_scheduled_tasks()
`
Would be gread if you could fix this issue.
Best regards
Andreas