Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-5668

Exception occurred plugin core_grades did not complete the processing of data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • moodle.org
    • None

      Messages received today suggest failures of data export and data deletion on Moodle.org. Please see attached text files. Text also reproduced below:
      Exception occurred while calling core_grades\privacy\provider::export_user_data.
      This means that plugin core_grades did not complete the processing of data. The following exception information may be passed on to the plugin developer:

      Invalid course module ID (SELECT id,course FROM

      {course_modules} WHERE id IS NULL
      [array (
      )])


      #0 /var/www/html/lib/dml/moodle_database.php(1522): moodle_database->get_record_select('course_modules', 'WHERE id IS NUL...', Array, 'id,course', 2)
      #1 /var/www/html/lib/accesslib.php(7052): moodle_database->get_record('course_modules', Array, 'id,course', 2)
      #2 /var/www/html/lib/grade/grade_item.php(2499): context_module::instance(NULL)
      #3 /var/www/html/lib/grade/grade_grade.php(1242): grade_item->get_context()
      #4 /var/www/html/grade/classes/privacy/provider.php(1208): grade_grade->get_context()
      #5 /var/www/html/grade/classes/privacy/provider.php(494): core_grades\privacy\provider::transform_grade(Object(grade_grade), Object(context_course), false)
      #6 /var/www/html/grade/classes/privacy/provider.php(1155): core_grades\privacy\provider::core_grades\privacy{closure}(Array, Object(stdClass))
      #7 /var/www/html/grade/classes/privacy/provider.php(513): core_grades\privacy\provider::recordset_loop_and_export(Object(mysqli_native_moodle_recordset), 'gi_courseid', Array, Object(Closure), Object(Closure))
      #8 /var/www/html/lib/moodlelib.php(7858): core_grades\privacy\provider::export_user_data(Object(core_privacy\local\request\approved_contextlist))
      #9 /var/www/html/privacy/classes/manager.php(578): component_class_callback('core_grades
      pri...', 'export_user_dat...', Array)
      #10 /var/www/html/privacy/classes/manager.php(611): core_privacy\manager::component_class_callback('core_grades', 'core_privacy
      lo...', 'export_user_dat...', Array)
      #11 /var/www/html/privacy/classes/manager.php(339): core_privacy\manager->handled_component_class_callback('core_grades', 'core_privacy
      lo...', 'export_user_dat...', Array)
      #12 /var/www/html/admin/tool/dataprivacy/classes/task/process_data_request_task.php(113): core_privacy\manager->export_user_data(Object(core_privacy\local\request\contextlist_collection))
      #13 /var/www/html/lib/cronlib.php(259): tool_dataprivacy\task\process_data_request_task->execute()
      #14 /var/www/html/lib/cronlib.php(147): cron_run_inner_adhoc_task(Object(tool_dataprivacy\task\process_data_request_task))
      #15 /var/www/html/lib/cronlib.php(68): cron_run_adhoc_tasks(1547811541)
      #16 /var/www/html/admin/cli/cron.php(61): cron_run()
      #17 {main}

      AND...
      xception occurred while calling core_grades\privacy\provider::delete_data_for_user.
      This means that plugin core_grades did not complete the processing of data. The following exception information may be passed on to the plugin developer:

      Invalid course module ID (SELECT id,course FROM {course_modules}

      WHERE id IS NULL
      [array (
      )])

      #0 /var/www/html/lib/dml/moodle_database.php(1522): moodle_database->get_record_select('course_modules', 'WHERE id IS NUL...', Array, 'id,course', 2)
      #1 /var/www/html/lib/accesslib.php(7021): moodle_database->get_record('course_modules', Array, 'id,course', 2)
      #2 /var/www/html/lib/grade/grade_item.php(2499): context_module::instance(NULL)
      #3 /var/www/html/lib/grade/grade_grade.php(1242): grade_item->get_context()
      #4 /var/www/html/grade/classes/privacy/provider.php(1269): grade_grade->get_context()
      #5 /var/www/html/grade/classes/privacy/provider.php(744): core_grades\privacy\provider::delete_files(Array, false, Array)
      #6 /var/www/html/lib/moodlelib.php(7855): core_grades\privacy\provider::delete_data_for_user(Object(core_privacy\local\request\approved_contextlist))
      #7 /var/www/html/privacy/classes/manager.php(578): component_class_callback('core_grades
      pri...', 'delete_data_for...', Array)
      #8 /var/www/html/privacy/classes/manager.php(611): core_privacy\manager::component_class_callback('core_grades', 'core_privacy
      lo...', 'delete_data_for...', Array)
      #9 /var/www/html/privacy/classes/manager.php(415): core_privacy\manager->handled_component_class_callback('core_grades', 'core_privacy
      lo...', 'delete_data_for...', Array)
      #10 /var/www/html/admin/tool/dataprivacy/classes/task/process_data_request_task.php(134): core_privacy\manager->delete_data_for_user(Object(core_privacy\local\request\contextlist_collection))
      #11 /var/www/html/lib/cronlib.php(185): tool_dataprivacy\task\process_data_request_task->execute()
      #12 /var/www/html/lib/cronlib.php(74): cron_run_inner_adhoc_task(Object(tool_dataprivacy\task\process_data_request_task))
      #13 /var/www/html/admin/cli/cron.php(61): cron_run()
      #14

      {main}

      AND....

            mudrd8mz David Mudrák (@mudrd8mz)
            marycooch Mary Cooch
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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