Jump to content

JSON.parse: unexpected character at line 1 column 1 of the JSON data


Recommended Posts

Problem is when adding a minature image to the catagory.

 

 

For what i read on this forum there are others with the same problem.

Some of them fixt it with overwriting the classes files.

 

Did that, done that but to no avail.

 

and of course i need to get this fixt.

 

so hoping someone has sollution that will fix this other then the above.

 

 

Link to comment
Share on other sites

  • 2 weeks later...

Hey, I have the same error when I try to upload one or several images in a product, instead in a category i can ulpoad the images...

 

Prestashop version: 1.6.1.0

 

Catalog / Products > Images > Add files... (select one or several jpg) > Upload files >

 

On Firefox

JSON.parse: unexpected character at line 1 column 1 of the JSON data

 

In Chrome

Unexpected token <

 

Somebody can make any help please?

After my all searches was failed...

I am fully convinced this error it is related at Prestashop version: 1.6.1.0 because previous I hadn't got any problem.

 

In truth I have no idea what I talking about!

 

I have been working very hard to find the fix.... I'm exhausted! Help please! :(

Edited by satobato (see edit history)
Link to comment
Share on other sites

Found it somewhere on this forum. Cant find it now. but all it said was overwrite the classes folder content with the Original files of the version your using.

 

but did not fix it for me.

 

just upgraded to the latest version and this also did not fix it.

Link to comment
Share on other sites

  • 1 month later...

1. PHP My Admin

2. Choose your database

3. Click on SQL

4. Insert the following

ALTER TABLE `ps_image` CHANGE `cover` `cover` TINYINT(1) UNSIGNED NULL DEFAULT '0';
ALTER TABLE `ps_image_shop` CHANGE `cover` `cover` TINYINT(1) UNSIGNED NULL DEFAULT '0';
5. Click OK
Link to comment
Share on other sites

Hey, I have the same error when I try to upload one or several images in a product, instead in a category i can ulpoad the images...

 

Prestashop version: 1.6.1.0

 

Catalog / Products > Images > Add files... (select one or several jpg) > Upload files >

 

On Firefox

JSON.parse: unexpected character at line 1 column 1 of the JSON data

 

In Chrome

Unexpected token <

 

Somebody can make any help please?

After my all searches was failed...

I am fully convinced this error it is related at Prestashop version: 1.6.1.0 because previous I hadn't got any problem.

 

In truth I have no idea what I talking about!

 

I have been working very hard to find the fix.... I'm exhausted! Help please! :(

ALTER TABLE `ps_image` CHANGE `cover` `cover` TINYINT(1) UNSIGNED NULL DEFAULT '0';
 
ALTER TABLE `ps_image_shop` CHANGE `cover` `cover` TINYINT(1) UNSIGNED NULL DEFAULT '0';
Link to comment
Share on other sites

  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...