Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-8263

Cron tasks failing due to coding error - moodle_database::update_record_raw() id field must be specified.

XMLWordPrintable

    • 3.5
    • MOODLE_35_STABLE

      We've noticed tasks in Moodle are not being completed, such as activities not being removed from gradebook after deletion, and not being pushed to the recycle bin. Searching for similar issues revealed this could be solved by restarting Cron. However once reset, Cron fails to complete any adhoc tasks. 

      I'll copy the error codes below, it seems to be missing an ID field in the database, but no system changes have been made so I'm not sure why they are suddenly missing, or what needs to be entered.

       

       

      Scheduled task failed: Legacy cron processing for plugins (core\task\legacy_plugin_cron_task),Coding error detected, it must be fixed by a programmer: moodle_database::update_record_raw() id field must be specified.
      !!! Error reading from database !!!
      

       

       

       

            timhunt Tim Hunt
            ojakir Omar Jakir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.