Hi Martin,
I get the "error writing to database" when trying to customize my language (portuguese). When trying to customize english terms, the system works properly.
I've put the code into config.php file and got the following results:
Debug info: Incorrect string value: '\xC5\x95io s...' for column 'master' at row 1
INSERT INTO mdl_report_customlang (lang,componentid,stringid,original,master,timemodified,outdated,local,timecustomized) VALUES(?,?,?,?,?,?,?,?,?)
[array (
0 => 'pt_br',
1 => '29',
2 => 'feedback_help',
3 => 'This box enables any comments about the grade to be added.',
4 => '
Comentários adicionados à nota pelo professor. Eles podem ser gerais, personalizados ou um comentaŕio simples referente a um sistema interno de feedback.
',
5 => 1300481786,
6 => 0,
7 => NULL,
8 => NULL,
)]
Stack trace:
line 394 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 874 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 916 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
line 174 of /admin/report/customlang/locallib.php: call to mysqli_native_moodle_database->insert_record()
line 48 of /admin/report/customlang/index.php: call to report_customlang_utils::checkout()
Could you please help me? What should I do?
regards