Ошибка

Не удается найти данную запись в таблице course базы данных.
Debug info: SELECT * FROM {course} WHERE id = ?
[array (
0 => 2177,
)]
Error code: invalidrecord
Stack trace:
  • line 1654 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
  • line 1630 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
  • line 36 of /customscripts/course/view.php: call to moodle_database->get_record()
  • line 1025 of /lib/setup.php: call to require()
  • line 37 of /config.php: call to require_once()
  • line 5 of /course/view.php: call to require_once()