Jump to content

Can't change my stock I get an error


Juan Rios1

Recommended Posts

So, whenever I try to change quantity, I get this error. 

"parsererror: SyntaxError: Unexpected token < in JSON at position 0" I hace searched so much for this error but no luck.

I use prestashop 1.6.24, I have had it for quite some time and have had no problem with it. I use google chrome and tried to change it in firefox and got a different error which is the picture with the blue square that says "parsererror: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"

 

If anyone knows how to fix or any ideas, please don't hold your breath, I really need help.

pserror.JPG

pserrorFF.JPG

Link to comment
Share on other sites

I would think that the problem is with JavaScript, maybe some module is wrong.

Is there a file for the products or stock in the ./override/ folder overwritten?

Link to comment
Share on other sites

It's simple.
Some modules use a lower version of php than recommended.
Downgrade PHP to 5.6 and you will see that everything will work.
However, you will lose the benefits of a higher version of PHP.

Link to comment
Share on other sites

2 hours ago, Guest said:

It's simple.
Some modules use a lower version of php than recommended.
Downgrade PHP to 5.6 and you will see that everything will work.
However, you will lose the benefits of a higher version of PHP.

I downgraded all the way to 5.6 and cleared my cache, still not working. 

Any other suggestions?

Link to comment
Share on other sites

  • 11 months later...
On 10/10/2020 at 5:15 AM, Juan Rios1 said:

So, whenever I try to change quantity, I get this error. 

"parsererror: SyntaxError: Unexpected token < in JSON at position 0" I hace searched so much for this error but no luck.

I use prestashop 1.6.24, I have had it for quite some time and have had no problem with it. I use google chrome and tried to change it in firefox and got a different error which is the picture with the blue square that says "parsererror: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"

 

If anyone knows how to fix or any ideas, please don't hold your breath, I really need help.

pserror.JPG

pserrorFF.JPG

So, whenever I try to change quantity, I get this error. 

"parsererror: SyntaxError: Unexpected token < in JSON at position 0" I hace searched so much for this error but no luck.

If anyone knows how to fix or any ideas, please don't hold your breath, I really need help.

Link to comment
Share on other sites

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...