Hello everyone,
Hope my message finds you well,
in the past few weeks, we had a project to upgrade our current Moodle site from 3.4 to 3.8 as we are running some plugins are not compatible with newer versions of Moodle. the 3.8.4+ was the only version we could upgrade to. so long story short, all the upgrade process and pain throughout was ok until we stumbled upon the following error
SyntaxError: Unexpected token _ in JSON at position 0
at parse (<anonymous>) at ajaxConvert (https://mymoodlesite/lib/javascript.php/-1/lib/jquery/jquery-3.5.1.js:9260:19) at done (https://mymoodlesite/lib/javascript.php/-1/lib/jquery/jquery-3.5.1.js:9736:15) at XMLHttpRequest.<anonymous> (https://mymoodlesite/lib/javascript.php/-1/lib/jquery/jquery-3.5.1.js:10047:9)
This error occurs when accessing an assignment and attempt to grade it. I've tried all possible solutions that I could linked them to but no luck.
additional information about my setup.
I am running Moodle 3.8.4+ (Build: 20200827) on Ubuntu 18.04.5 LTS with PHP 7.2.24 and MySQL 5.7.32
The actions have taken so far to troubleshoot are
- upgrade jQuery from 3.4.1 to 3.5.1
- disable JavaScript caching
- looking around for permission/ownership issues.
The only output could lead to something, I can see on my browser console that there is a warning on depreciated function on XMLHttpRequest if this could help.
I look forward for your contribution to this, your assistance is highly appreciated.
Best.
Suheel.