Skip to main content Skip to sidebar
Toggle navigation
MTC Logo
  • Close
  • Dashboard
  • My Learning
  • Search
  • CPD Log
  • Shop
You are using a guest account Sign in
  • Language options
  • English ‎(en)‎

The Modern Apprentice

  1. Home
  2. Shop Products
  3. The Modern Apprentice
Skip Course search

Course search

Error writing to database

More information about this error

Debug info: Duplicate entry '4529-2026-11-17' for key 'mdl_a1discviewtota_resyeam_uix'
INSERT INTO mdl_a1_discover_views_total ("resource","year","month","day","tally") VALUES(?,?,?,?,?)
[array (
0 => 4529,
1 => 2026,
2 => 11,
3 => 17,
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()
Skip Course categories

Course categories

  • Apprentice Training
  • Internal Training
  • Leadership & Management Training
  • Technology Training
  • Defence Sector
All courses ...
Skip Calendar

Calendar

◄ Previous month | March 2096 | Next month ►
Mo Tu We Th Fr Sa Su
      1234
567891011
12131415161718
19202122232425
262728293031 
You are using a guest account Sign in
©2025 Manufacturing Technology Centre
Powered by Accipio logo