title: moodle adding question from question bank error
body: <p>using Moodle</p>
  
  <p>while adding a question from question bank this error occurred:</p>
  
  <p>Unexpected token &lt; in JSON at position 0 </p>
  
  <p>when opening the console this message occured:</p>
  
  <pre><code> jQuery.Deferred exception: Unexpected token &lt; in JSON at position 0 SyntaxError: Unexpected token &lt; in JSON at position 0
      at parse (&lt;anonymous&gt;)
      at Qb (/lib/javascript.php/1586869077/lib/jquery/jquery-3.2.1.min.js:1:74283)
      at A (/lib/javascript.php/1586869077/lib/jquery/jquery-3.2.1.min.js:1:77810)
      at XMLHttpRequest.&lt;anonymous&gt; (/lib/javascript.php/1586869077/lib/jquery/jquery-3.2.1.min.js:1:80414) undefined
  r.Deferred.exceptionHook @ jquery-3.2.1.min.js:1
  </code></pre>