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

Scheduled task failed: Turnitintooltwo Cron Task (mod_turnitintooltwo\task\turnitintooltwo_task),Invalid course module ID #733

Open
qqtuyen opened this issue Jul 2, 2024 · 0 comments

Comments

@qqtuyen
Copy link

qqtuyen commented Jul 2, 2024

I'm getting this error on a cron. Moodle 4.1.11. php 8.0.30

$plugin->version = 2024032901;
$plugin->release = "4.1+";
$plugin->requires = 2016052300;
$plugin->component = 'mod_turnitintooltwo';
$plugin->maturity = MATURITY_STABLE;

Execute scheduled task: Turnitintooltwo Cron Task (mod_turnitintooltwo\task\turnitintooltwo_task)
... started 21:55:02. Current memory use 18.5 MB.
... used 10 dbqueries
... used 1.5014550685883 seconds
Scheduled task failed: Turnitintooltwo Cron Task (mod_turnitintooltwo\task\turnitintooltwo_task),Invalid course module ID
Debug info:
SELECT id,course FROM {course_modules} WHERE id IS NULL
[array (
)]
Backtrace:

  • line 1630 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
  • line 7442 of /lib/accesslib.php: call to moodle_database->get_record()
  • line 1586 of /mod/turnitintooltwo/turnitintooltwo_assignment.class.php: call to context_module::instance()
  • line 1652 of /mod/turnitintooltwo/turnitintooltwo_assignment.class.php: call to turnitintooltwo_assignment->update_submissions_from_tii()
  • line 701 of /mod/turnitintooltwo/lib.php: call to turnitintooltwo_assignment->refresh_submissions()
  • line 42 of /mod/turnitintooltwo/classes/task/turnitintooltwo_task.php: call to turnitintooltwo_cron()
  • line 263 of /lib/cronlib.php: call to mod_turnitintooltwo\task\turnitintooltwo_task->execute()
  • line 120 of /lib/cronlib.php: call to cron_run_inner_scheduled_task()
  • line 73 of /lib/cronlib.php: call to cron_run_scheduled_tasks()
  • line 178 of /admin/cli/cron.php: call to cron_run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants