When our cron job runs it crashes when running the adhoc task course_delete_modules with the following error:
The PHP log shows the following
This only happens for a minority of records from the task_adhoc table. If I start deleting records that cause the problem the script will stop crashing until another problem record occurs. I have not been able to see any difference between the records that work and those that cause a crash.
Hope that someone can help me with this.