I did a migration of my moodle site into a new server and now I get a "writing to database" error.
I've already tried this: https://moodle.org/mod/forum/discuss.php?d=196209#p888327 with no results.
I've enabled the debug mode on the config.php:
$CFG->debug = 38911;
This is the result I get:
UPDATE mdl_local_ousearch_documents SET timemodified = ? WHERE id=?
[array (
0 => 1429799197,
1 => '3691',
)]
- line 397 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 999 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1031 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->update_record_raw()
- line 212 of /local/ousearch/searchlib.php: call to mysqli_native_moodle_database->update_record()
- line 285 of /local/ousearch/ousmodules.php: call to local_ousearch_document->update()
- line 367 of /course/modedit.php: call to ouscoursemodule::update()