Can not find data record in database table context.

Can not find data record in database table context.

by Developer Tres Slope -
Number of replies: 0

When i try to open a file i got this error:

Can not find data record in database table context.

Debug info: SELECT * FROM {context} WHERE id = ?

[array (
0 => 4851,
)]
Error code: invalidrecord
Stack trace:
  • line 1526 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
  • line 1502 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
  • line 5512 of /lib/accesslib.php: call to moodle_database->get_record()
  • line 1432 of /lib/accesslib.php: call to context::instance_by_id()
  • line 3861 of /lib/filelib.php: call to get_context_info_array()
  • line 37 of /pluginfile.php: call to file_pluginfile()
I've passed cron many many times and tried debug mode on, but the error remains. Any help, please?

Thanks a lot

Average of ratings: -