Exception encountered in event observer '\local_edwiserreports\observers\event_observer::user_loggedin': Error writing to database (ERROR: duplicate key value violates unique constraint "mdl_edwrauth_use_uix"
DETAIL: Key (userid)=(1) already exists.
INSERT INTO mdl_edwreports_authentication (userid,secret) VALUES($1,$2) RETURNING id
[array (
'userid' => 1,
'secret' => 'fNHccbe5X3',
)])
line 377 of /public/lib/dml/moodle_read_replica_trait.php: call to moodle_database->query_end()
line 358 of /public/lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->read_replica_query_end()
line 1149 of /public/lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
line 1197 of /public/lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->insert_record_raw()
line 76 of /public/local/edwiserreports/classes/controller/authentication.php: call to pgsql_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 4148 of /public/lib/moodlelib.php: call to core\event\base->trigger()
line 2330 of /public/lib/moodlelib.php: call to complete_user_login()
line 2834 of /public/lib/moodlelib.php: call to require_login()
line 53 of /public/mod/resource/view.php: call to require_course_login()
This page did not call $PAGE->set_url(...). Using https://kelmsv2.kyu.ac.ug/mod/resource/view.php?id=644
line 704 of /public/lib/pagelib.php: call to debugging()
line 985 of /public/lib/pagelib.php: call to moodle_page->magic_get_url()
line 52 of /public/admin/tool/mobile/classes/hook_callbacks.php: call to moodle_page->__get()
line 0 of : call to tool_mobile\hook_callbacks::before_standard_head_html_generation()
line 323 of /public/lib/classes/hook/manager.php: call to call_user_func()
line 802 of /public/theme/remui/classes/output/core_renderer.php: call to core\hook\manager->dispatch()
line 238 of /vendor/mustache/mustache/src/Context.php: call to theme_remui\output\core_renderer->standard_head_html()
line 157 of /vendor/mustache/mustache/src/Context.php: call to Mustache\Context->findVariableInStack()
line 35 of /var/moodledata/localcache/mustache/1787731357/remui/__Mustache_38ca6b468ec12cf41d69e6b1efc05078.php: call to Mustache\Context->findDot()
line 71 of /vendor/mustache/mustache/src/Template.php: call to __Mustache_38ca6b468ec12cf41d69e6b1efc05078->renderInternal()
line 191 of /public/lib/classes/output/renderer_base.php: call to Mustache\Template->render()
line 38 of /public/theme/remui/layout/embedded.php: call to core\output\renderer_base->render_from_template()
line 961 of /public/lib/classes/output/core_renderer.php: call to include()
line 877 of /public/lib/classes/output/core_renderer.php: call to core\output\core_renderer->render_page_layout()
line 807 of /public/lib/classes/output/core_renderer.php: call to core\output\core_renderer->header()
line 0 of : call to core\output\core_renderer->redirect_message()
line 109 of /public/lib/classes/output/bootstrap_renderer.php: call to call_user_func_array()
line 2252 of /public/lib/weblib.php: call to core\output\bootstrap_renderer->__call()
line 2634 of /public/lib/moodlelib.php: call to redirect()
line 2834 of /public/lib/moodlelib.php: call to require_login()
line 53 of /public/mod/resource/view.php: call to require_course_login()
This page should automatically redirect. If nothing is happening please use the continue link below. | KELMS