JSON.parse: unexpected character at line 1 column 1 of the JSON data

JSON.parse: unexpected character at line 1 column 1 of the JSON data

by Josef Kovar -
Number of replies: 1

Add an activity or resource doesn't work after upgrade.
Previously: moodle-3.8.4+ (Build: 20200814) => moodle-3.9.2+ (Build: 20201016)
In version 3.8.4 everything worked.

After clicking on 'Add an activity or resource' in the course with Turn editing on, an error will be displayed: "Error occurred JSON.parse: unexpected character at line 1 column 1 of the JSON data". Screenshot attached.

Thank you in advance for any help.

Josef Kovar
Metropolitan university Prague

Average of ratings: -
In reply to Josef Kovar

Re: JSON.parse: unexpected character at line 1 column 1 of the JSON data

by Josef Kovar -
Solved.

The problem was caused by the presence of jQuery before the JSON response in the file /mod/wiziq/locallib.php.
[{"error":false,"data":{"content_items":[{"id":3,"name":"choice","title":"Anketa","link":"https:\/\/moodletest.mup.cz\/course\/mod.php?id=663&add=choice","icon":"

After uninstalling A Virtual Classroom Plugin: WizIQ: mod_wiziq
immediately everything started to work perfectly.