Error writing to database
Debug info: Duplicate entry '4507-2026-11-16' for key 'mdl_a1discviewtota_resyeam_uix'
INSERT INTO mdl_a1_discover_views_total ("resource","year","month","day","tally") VALUES(?,?,?,?,?)
[array (
0 => 4507,
1 => 2026,
2 => 11,
3 => 16,
4 => 1,
)]
Error code: dmlwriteexception
INSERT INTO mdl_a1_discover_views_total ("resource","year","month","day","tally") VALUES(?,?,?,?,?)
[array (
0 => 4507,
1 => 2026,
2 => 11,
3 => 16,
4 => 1,
)]
Error code: dmlwriteexception
Stack trace:
- line 552 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 1471 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1517 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 48 of /local/accipio/one/discover/classes/resource/engagement/write/user_engagement_write_repository_base.php: call to mysqli_native_moodle_database->insert_record()
- line 40 of /local/accipio/one/discover/classes/resource/engagement/write/view_write_repository.php: call to accipioone_discover\resource\engagement\write\user_engagement_write_repository_base->add_to_current_tally()
- line 40 of /local/accipio/one/discover/classes/resource/engagement/write/user_engagement_write_repository.php: call to accipioone_discover\resource\engagement\write\view_write_repository->add_to_current_tally()
- line 54 of /local/accipio/one/discover/classes/api/engagement_read_write_api.php: call to accipioone_discover\resource\engagement\write\user_engagement_write_repository->add_instance()
- line 118 of /local/accipio/one/shop/classes/output/product_view_output.php: call to accipioone_discover\api\engagement_read_write_api::add_resource_view()
- line 83 of /local/accipio/one/shop/classes/output/renderer.php: call to accipioone_shop\output\product_view_output->export_for_template()
- line 100 of /lib/outputrenderers.php: call to accipioone_shop\output\renderer->render_product_view_output()
- line 75 of /local/accipio/one/shop/product.php: call to plugin_renderer_base->render()
- line 86 of /local/accipio/one/rank/router.php: call to require()