grabs / moodle-mod_unilabel

1 stars 10 forks source link

error with adding new elements to the grid #45

Closed moodlehcu closed 6 months ago

moodlehcu commented 6 months ago

Hi @ all,

unfortunately we are having some issues with lastest version of the plugin "mod_unilabel" 4.3.4 (Build: 2024012800) (2024013100).

When we are trying add an element to the grid by clicking the green button "add element" we continuously running into an error:

{"error":"Coding error detected, it must be fixed by a programmer: Invalid json in request: Syntax error","errorcode":"codingerror","stacktrace":"* line 63 of \/lib\/ajax\/service.php: coding_exception thrown\n","debuginfo":"\nError code: codingerror","reproductionlink":"https:\/\/OURMOODLEURL\/"}

It seems that the webserver expect the JSON format but instead it gets this:

<script type='text/javascript'> var attovars = new Array('Title', 'Embed with chapters', 'Embed without chapters', 'Search',); and so on.....

This issue only appear in the latest version of the plugin.

We already tried the previous version 4.1.1 (Build: 2022122400) (2022042001) and it works perfectly fine.

Does anybody else have the same issues or better does anybody know how to fix it? Or is there any possibility to downgrade the plugin to the version 4.1.1?

Our system details: moodle Version: Moodle 4.1.9+ (Build: 20240315) PHP Version: 8.1.27

Thanks in advance!

Best Marco

moodle error

moodlehcu commented 6 months ago

We found the issue by ourselfs, the error was located in a different plugin for the editor which is loaded same window.