OJS 3.2.1-1 Uncaught SyntaxError: Unexpected token < in JSON at position 0

Hi,

just upgraded OJS to version 3.2.1-1 and when submiting a paper, after uploading the file, the “Enter Metadata” tab isn’t loading.

The browser console shows the message “Uncaught SyntaxError: Unexpected token < in JSON at position 0”

any clues to solve this?

VM1973:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    at Function.parse [as parseJSON] (<anonymous>)
    at b.a.pkp.controllers.TabHandler.dataFilter (pkp.min.js?v=3.2.1.1:211)
    at Object.dataFilter (pkp.min.js?v=3.2.1.1:129)
    at Ut (jquery.min.js?v=3.2.1.1:2)
    at k (jquery.min.js?v=3.2.1.1:2)
    at XMLHttpRequest.<anonymous> (jquery.min.js?v=3.2.1.1:2)

just found that the display_errors was set to On, and some warning was corrupting the JSON message!

1 Like

Thank you for this post! It just saved me time and stress of authors and editors emailing me about it. I had a couple authors email me, then I edited the display_errors setting in config.php.inc and it was fixed instantly! Thank you for taking the time to repost the answer to your original question to the forum.