-
Improvement
-
Resolution: Duplicate
-
Critical
-
None
-
2.3
-
MOODLE_23_STABLE
It could be really useful to let the user always see the error behind the invalid JSON reply, especially if related to the server configuration (see e.g. PHP file size limit) and not to a Moodle issue:
- commented out:
moodle-master/lib/form/filemanager.js:
...
} catch(e) {
// TODO display error
scope.print_msg(M.str.repository.invalidjson, 'error');
//scope.display_error(M.str.repository.invalidjson+'<pre>'+stripHTML(o.responseText)+'</pre>', 'invalidjson')
return;
}
...
- managed:
moodle-master/repository/filepicker.js:
...
} catch(e) {
scope.print_msg(M.str.repository.invalidjson, 'error');
scope.display_error(M.str.repository.invalidjson+'<pre>'+stripHTML(o.responseText)+'</pre>', 'invalidjson')
return;
}
...
- has a non-specific relationship to
-
MDL-28498 Invalid JSON string
-
- Closed
-
-
MDL-33494 Invalid JSON string error when uploading large file (30mb) using filepicker
-
- Closed
-
-
MDL-33800 JSON error when adding recent files in file manager
-
- Closed
-
- will be (partly) resolved by
-
MDL-33832 Check files.source field is set even in non-filepicker situations.
-
- Closed
-