JSON error when using drop zone
Bug #1216764 reported by
Kristina Hoeppner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Robert Lyon |
Bug Description
latest Mahara 1.8.0dev
When adding a file via drag and drop to a journal entry, I get "SyntaxError: JSON.parse: unexpected character".
Changed in mahara: | |
status: | Triaged → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
milestone: | 1.8rc1 → 1.8.0 |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Kristina,
This error happens when the returning code is the html page rather than the expected json data. The html page is not expected to be returned so obviously either a field is missing from being passed at the dropping of files (or conversly a field that is not needed is eing passed, eg a cancel button field). I have encountered this a couple of times and had added fixes for it for a bunch of scenarios.
But you've discovered another one.
Are you able to let me know which page and what things were enabled on the page eg license meta data, auto resizing etc and what browser you were using? I suspect there is a special combo of things happening that is causing the wrong expected results being passed back to the page.
Cheers
Bob