Exception encountered in event observer '\local_edwiserreports\observers\event_observer::user_loggedin': Error writing to database (Duplicate entry '1' for key 'm_edwrauth_use_uix'
INSERT INTO m_edwreports_authentication (userid,secret) VALUES(?,?)
[array (
0 => 1,
1 => 'wNtHaEKfQg',
)])
- line 293 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->query_end()
- line 1448 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->query_end()
- line 1494 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 76 of /local/edwiserreports/classes/controller/authentication.php: call to mysqli_native_moodle_database->insert_record()
- line 49 of /local/edwiserreports/classes/observers/authentication.php: call to local_edwiserreports\controller\authentication->create_secret_key()
- line ? of unknownfile: call to local_edwiserreports\observers\event_observer::user_loggedin()
- line 155 of /lib/classes/event/manager.php: call to call_user_func()
- line 75 of /lib/classes/event/manager.php: call to core\event\manager::process_buffers()
- line 795 of /lib/classes/event/base.php: call to core\event\manager::dispatch()
- line 4101 of /lib/moodlelib.php: call to core\event\base->trigger()
- line 2297 of /lib/moodlelib.php: call to complete_user_login()
- line 84 of /course/section.php: call to require_login()