Hi to all, i am having some troubles when i try certain actions like removing old users, in some cases i get this:
No se puede encontrar registro de datos en la tabla course de la base de datos. (cant find entries in the table course of the database)
This is what i get in debugging:
Debug info: SELECT id,category FROM {course} WHERE id = ?
0 => '127',
)]
Error code: invalidrecord
Stack trace:
- line 1562 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
- line 1538 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
- line 6827 of /lib/accesslib.php: call to moodle_database->get_record()
- line 2093 of /lib/enrollib.php: call to context_course::instance()
- line 2648 of /lib/enrollib.php: call to enrol_plugin->unenrol_user()
- line 1058 of /lib/enrollib.php: call to enrol_plugin->user_delete()
- line 4207 of /lib/moodlelib.php: call to enrol_user_delete()
- line 29 of /admin/user/user_bulk_delete.php: call to delete_user()