This record cannot be found in the course table of the database

This record cannot be found in the course table of the database

by Роман Агеев -
Number of replies: 2

Добрый день! прошу помочь избавится от ошибки при удалении пользователей (Moodle 3.9+ (Build: 200618)):

Не удается найти данную запись в таблице course базы данных.

Подробнее об этой ошибке

_________________________________________________________________

Good afternoon! please help me get rid of the error when deleting users:

This record cannot be found in the course table of the database.

Learn more about this error

×Информация об отладке: SELECT id,category FROM {course} WHERE id IS NULL
[array (
)]
Error code: invalidrecord
×Трассировки стека:
  • line 1599 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
  • line 1575 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
  • line 6928 of /lib/accesslib.php: call to moodle_database->get_record()
  • line 70 of /lib/classes/event/grade_deleted.php: call to context_course::instance()
  • line 1122 of /lib/grade/grade_grade.php: call to core\event\grade_deleted::create_from_grade()
  • line 1536 of /lib/gradelib.php: call to grade_grade->delete()
  • line 4238 of /lib/moodlelib.php: call to grade_user_delete()
  • line 107 of /admin/user.php: call to delete_user()

Average of ratings: -
In reply to Роман Агеев

Re: This record cannot be found in the course table of the database

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Moodle 3.9+ (Build: 200618) – That version looks very old and is behind on updates. The error looks like it could be MDL-68680 which was fixed in Moodle 3.9.2. Update to Moodle 3.9.14 and see if the problem still occurs.

In reply to Leon Stringer

Re: This record cannot be found in the course table of the database

by Роман Агеев -
Благодарю Вас, обновление помогло избавится от данной ошибки при удалении пользователей!
________________________________________________________________________________________
Thank you, the update helped to get rid of this error when deleting users!