We've been running into an issue with gradebook items not being removed from the gradebook after being deleted. Through some research we found that restarting cron should resolve it. After trying that with no luck, we noticed in our cron log that it was failing some tasks, specifically "Legacy cron processing for plugins (core\task\legacy_plugin_cron_task)" and adhoc tasks such as "core_course\task\course_delete_modules"
The common issue in every failed task is this:
"Coding error detected, it must be fixed by a programmer: moodle_database::update_record_raw() id field must be specified.
!!! Error reading from database !!!"
Now it seems that we are missing this update_record_raw() id, but I'm not sure what needs to be placed here. Has anybody run into this or have any suggestions as to how to solve this?
We are running Moodle 3.5 and to my knowledge, the only system change we have done recently is change mail servers.