[OJS3 -] Error Uploading Image

When uploading the image and clicking on the “save” button, an error is sent to the console and the "Submission and publication of metadata " screen is not closed.
I’m looking for a solution.

Thank you.


Uncaught SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse ()
at Function.jQuery.parseJSON (jquery.js:8517)
at Object.success (TabHandler.js:281)
at fire (jquery.js:3099)
at Object.fireWith [as resolveWith] (jquery.js:3211)
at done (jquery.js:9310)
at XMLHttpRequest.callback (jquery.js:9720)

Uncaught TypeError: this.unbindPartial is not a function
at removeNotification (NotificationHandler.js:292)
at NotificationHandler.js:302

Hi there,

Can you check the server side error log to see if something went wrong back there? If the server was unable to save your image for some reason, it may have sent back a response that was not valid JSON.


1 Like


The image is saved on the server, but the Modal is not closed, it recovers and displays this message on the console.

Yes, but I an wondering if a server side error is occurring in the process. The console is complaining about being unable to parse the returned JSON, which suggests the server is sending something back that is not valid which is why the modal isn’t closing. If you have access to your server error logs, you can try tailing them while you upload an image.