Добрый день! прошу помочь избавится от ошибки при удалении пользователей (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
[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()