Exception encountered in event observer '\local_edwiserreports\observers\event_observer::user_loggedin': Error writing to database (Duplicate entry '1' for key 'qfivethreeedwreports_authentication.qfivethreeedwrauth_use_uix'
INSERT INTO qfivethreeedwreports_authentication (userid,secret) VALUES(?,?)
[array (
0 => 1,
1 => 'O7NEvQ5LfA',
)])
- line 377 of /public/lib/dml/moodle_read_replica_trait.php: call to moodle_database->query_end()
- line 1448 of /public/lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->query_end()
- line 1494 of /public/lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 76 of /public/local/edwiserreports/classes/controller/authentication.php: call to mysqli_native_moodle_database->insert_record()
- line 49 of /public/local/edwiserreports/classes/observers/authentication.php: call to local_edwiserreports\controller\authentication->create_secret_key()
- line 0 of : call to local_edwiserreports\observers\event_observer::user_loggedin()
- line 155 of /public/lib/classes/event/manager.php: call to call_user_func()
- line 75 of /public/lib/classes/event/manager.php: call to core\event\manager::process_buffers()
- line 793 of /public/lib/classes/event/base.php: call to core\event\manager::dispatch()
- line 4100 of /public/lib/moodlelib.php: call to core\event\base->trigger()
- line 2336 of /public/lib/moodlelib.php: call to complete_user_login()
- line 2847 of /public/lib/moodlelib.php: call to require_login()
- line 79 of /public/mod/forum/view.php: call to require_course_login()