Add from the question bank pop up screen stuck at loading

Add from the question bank pop up screen stuck at loading

by Ahmed Saad -
Number of replies: 2

Add from the question bank pop up screen stuck at loading, it give Json error in dev tools console  

" Uncaught Syntax Error: Unexpected token  in JSON at position 0 " 

Check the screenshot below, 

My server configuration are 

PHP 5.6.4

Moodle 3.1.5

Does any one face this same issue while adding question from Question Bank, and could have find a s                 

quiz error

Average of ratings: -
In reply to Ahmed Saad

Re: Add from the question bank pop up screen stuck at loading

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
There is a limit to how much support we can give with such an old version of Moodle. However, with more information we could try.

The first thing we need is more information about what the error is. You can get that like this:

In the screen-grab above, instead of looking in the console, look in the 'Network' tab. Have that open before you open the question bank window. Then, open the Question bank pop-up, and you will see various new requests being made. Work out which of those is the request for the list of questions, and click around to get see what the response is. That is probably what we need to see to help.
Average of ratings: Useful (1)
In reply to Tim Hunt

Re: Add from the question bank pop up screen stuck at loading

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

This is what it should look like, roughly:


Except that screen-grab was taken with a recent Moodle version. For Moodle 3.1, the request you are looking for will be to questionbank.ajax.php.
Average of ratings: Useful (1)