Hi all,
Moodle 3.5.11
I’d appreciate your expertise sorting out an error message I’m getting while opening the English_U.S. language pack to do a little customization. Below is the error message I’ve captured in the logs:
Default exception handler: Error writing
to database Debug: Duplicate entry 'en_us-513-reusecontent' for key 'mdl_toolcust_lancomstr_uix'
INSERT INTO mdl_tool_customlang (lang,componentid,stringid,original,master,timemodified,outdated,local,timecustomized) VALUES(?,?,?,?,?,?,?,?,?)
[array
(
0 => 'en_us',
1 => '513',
2 => 'reusecontent',
3 => 'Reuse Content',
4 => 'Reuse Content',
5 => 1587053358,
6 => 0,
7 => NULL,
8 =>
NULL,
)]
Error code: dmlwriteexception
* line 489 of \lib\dml\moodle_database.php: dml_write_exception thrown
* line 1329 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 1375 of
\lib\dml\mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
* line 191 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()
I’m comfortable diving into phpMyAdmin to deal with the “duplicate entry” that’s mentioned in the error, but at this stage, I’m not sure where to begin. I think I might just need to delete a row from mdl_tool_customlang
? I did a search for something related to the values being inserted, but it did not return any results...
Thanks for any ideas you might have!