Page 1 of 1

SyntaxError: Unexpected token < in JSON at position 0 and some error

Posted: Mon Jun 18, 2018 11:52 pm
by jacgo
Hi All
Our OP version is 3.0.2
Got error when upload image via filemanager.

SyntaxError: Unexpected token < in JSON at position 0
Parser error
SyntaxError: JSON.parse Error : Invalid character at position:1 parsererror


Screenshot :
http://nimb.ws/TpD190

Is there any one who also got this error and solve this issue?

Many thanks!

Re: SyntaxError: Unexpected token < in JSON at position 0 and some error

Posted: Tue Jun 19, 2018 2:48 am
by straightlight
Ensure to use a proper image size before uploading. If the image is too big, you might receive error messages from the Image Manager tool. In addition, the permissions must be properly set on your FTP in order for the Image Manager tool to be able to successfully upload the images on your server. Refer to the install.txt file from your downloaded OC zip file from opencart.com to know which permission settings are required with OC.

Re: SyntaxError: Unexpected token < in JSON at position 0 and some error

Posted: Thu Aug 16, 2018 7:34 pm
by kslakhani
That is most probably you have messed with javascript syntax by using either third party mods or u have changed in yr common.js or may be in header.twig file