GIFT-Format questions and JSON-error

GIFT-Format questions and JSON-error

by Paul K -
Number of replies: 4

We are experiencing a problem in using questions from the question bank. One of our lecturer added a new question using GIFT format into the question bank. Since that time he is getting the following error when he want to add some question bank questions:

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

File: https://moodle...../lib/javascript.php/1540547294/lib/jquery/jquery-3.2.1.min.js
Line: 1

Stack trace:
ln: 74283
https://moodle..../lib/javascript.php&#x
Qb
ln: 77810
https://moodle.../lib/javascript.php&#x
A
ln: 80414
https://moodle...../lib/javascript.php&#x
c/<


The deletion of the question from the question bank does not do anything. He is not able to use any questions from the question bank.

We are using the Moodle version 3.5.2 together with PHP x64 v.7.2.11 under IIS.

Average of ratings: -
In reply to Paul K

Re: GIFT-Format questions and JSON-error

by Paul K -

Maybe someone has an idea where the problem is?

In reply to Paul K

Re: GIFT-Format questions and JSON-error

by Simon Muia -

I am experiencing the same issue. I cant wait to see the solution

In reply to Paul K

Re: GIFT-Format questions and JSON-error

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Those JavaScript errors are not very helpful. Are there are other error messages, e.g. in the PHP error log on the server? (You may need to turn on Debugging first.)

In reply to Paul K

Re: GIFT-Format questions and JSON-error

by Konrad Lorinczi -

In my case the problem source was a missing question type.

There were existing questions with the missing question type, then later likely the question type plugin was deleted. This is why the error appeared.

Using Moodle v3.5.1+