I just upgraded a copy of our live site from 1.9.10+ to 2.1+, and although it initially left me logged in, once I reopened the browser, it wouldn't allow me (or anyone) to login again. I followed all the defaults for settings on upgrade, and deleted all mods/blocks that were incompatible with 2.1 prior to completing the upgrade.
Here is the error: Error writing to database
Stack trace:
Debug info:
Stack trace:
- line 397 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 984 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1016 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->update_record_raw()
- line 3358 of /lib/moodlelib.php: call to mysqli_native_moodle_database->update_record()
- line 3583 of /lib/moodlelib.php: call to update_user_record()
- line 133 of /login/index.php: call to authenticate_user_login()