Deletion of Quiz causes JSON syntax error in moodle 3.5.5

Deletion of Quiz causes JSON syntax error in moodle 3.5.5

by Paul Lindgreen -
Number of replies: 0
Picture of Particularly helpful Moodlers

moodle 3.5.5, upgraded from moodle 3.3.6 last month

Deleting a Quiz now causes a pop up error: syntaxerror json.parse: unexpected character at line 1 column1 of the json data. The quiz can be brand new or created previously to recent upgrade.

Other error message details from browser debugger and moodle debugging listed below. I didnt see anything in my php error logs.

Closing the pop up will show the quiz is still there, but if you refresh the page the quiz is actually deleted.

Most research Ive done (1,2) suggests it has something to do with deleting quiz question bank categories or types, there is one Moodle Tracker which looks similar to my issue here

Any ideas on how to troubleshoot deleting quizes and questions that may not have been previously deleted thoroughly/correctly? My development environment does not have this issue so Im guessing its related to question data in my live environment.

====error messages=======

With debugging on:

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

File: https://mydomain/lib/javascript.php/1556627388/lib/jquery/jquery-3.2.1.min.js

Line: 1

Stack trace:

ln: 74283

https://mydomain/lib/javascript.php&#

Qb

ln: 77810

https://mydomain/lib/javascript.php&#

A

ln: 80414

https://mydomain/lib/javascript.php&#

c/<

syntax error

debugger1

debugger2



Average of ratings: -