Moodle 2.4.5+ (Build: 20130815)
I am also receiving a similar message. How did you determine (from the code) that it was the block_tts? I do not have that block installed.
I am wondering if I can simply delete the record from the mdl_tool_customlang table, but I do not want something to go wrong.
Please help. Thank you.
Debug info: Duplicate entry 'en_us-401-m' for key 'm2_toolcust_lancomstr_uix'
INSERT
INTO m2_tool_customlang
(lang,componentid,stringid,original,master,timemodified,outdated,local,timecustomized)
VALUES(?,?,?,?,?,?,?,?,?)
[array (
0 => 'en_us',
1 => '401',
2 => 'm',
3 => 'm',
4 => 'm',
5 => 1411503183,
6 => 0,
7 => NULL,
8 => NULL,
)]
Error code: dmlwriteexception
Stack trace: - line 429 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 1107 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1149 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 190 of /admin/tool/customlang/locallib.php: call to mysqli_native_moodle_database->insert_record()
- line 60 of /admin/tool/customlang/index.php: call to tool_customlang_utils::checkout()