Language customisation error database write

Language customisation error database write

por jrcristofani Cristofani -
Número de respostas: 3

Hello guys

After updating Moodle 3.7.1, the qtype_ordering plugin is causing the "writing error in the database", preventing the language from loading for customization.

I tested in a clean Moodle 3.7.1 installation. With the plugin gives error, without the plugin does not give error.

This is the debbuging report:

Debug info: Duplicate entry 'pt_br-473-numberingstyleABC' for key 'mdl3g_toolcust_lancomstr_uix'

INSERT INTO mdl3g_tool_customlang (lang,componentid,stringid,original,master,timemodified,outdated,local,timecustomized) VALUES(?,?,?,?,?,?,?,?,?)

[array (

0 => 'pt_br',

1 => '473',

2 => 'numberingstyleABC',

3 => 'A., B., C., ...',

4 => 'A., B., C., ...',

5 => 1563364781,

6 => 0,

7 => NULL,

8 => NULL,

)]

Error code: dmlwriteexception

Stack trace:

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()

Could anyone help?

Thank you.

JR.Cristofani

Media de puntuacións: -
En resposta a jrcristofani Cristofani

Re: Language customisation error database write

por Gordon Bateson -
Imaxe de Core developers Imaxe de Peer reviewers Imaxe de Plugin developers

Thank you for this report José.

I am working on fix for this issue.
It should be fixed within a few days.

Kind regards
Gordon Bateson
(maintainer of the Ordering plugin) 

En resposta a Gordon Bateson

Re: Language customisation error database write

por jrcristofani Cristofani -
Hello Gordon
I upgrade the ordering plugin and it is working fine. The problem with language customization has disappeared.
Thank you very much
jr. cristofani