Juan Rios1 Posted October 9, 2020 Share Posted October 9, 2020 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. Link to comment Share on other sites More sharing options...
Guest Posted October 10, 2020 Share Posted October 10, 2020 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 More sharing options...
joseantgv Posted October 10, 2020 Share Posted October 10, 2020 Enable DEBUG mode and check network response at Console (Ctrl + Shift + J). Link to comment Share on other sites More sharing options...
Juan Rios1 Posted October 12, 2020 Author Share Posted October 12, 2020 On 10/10/2020 at 2:11 AM, joseantgv said: Enable DEBUG mode and check network response at Console (Ctrl + Shift + J). This is what I get when I enabled debug. Link to comment Share on other sites More sharing options...
joseantgv Posted October 13, 2020 Share Posted October 13, 2020 Which PHP version are you running? Link to comment Share on other sites More sharing options...
Juan Rios1 Posted October 13, 2020 Author Share Posted October 13, 2020 6 hours ago, joseantgv said: Which PHP version are you running? I'm using 7.3... I tried changing all the way back to 5.5 and got the error with all of them Link to comment Share on other sites More sharing options...
Juan Rios1 Posted October 13, 2020 Author Share Posted October 13, 2020 I still have had 0 luck with this issue. If anyone has any suggestions, please anything helps, maybe I've skip some possible solutions Link to comment Share on other sites More sharing options...
joseantgv Posted October 14, 2020 Share Posted October 14, 2020 (edited) Define PHP 7.1 version and clear cache. Edited October 14, 2020 by joseantgv (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted October 14, 2020 Share Posted October 14, 2020 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 More sharing options...
Juan Rios1 Posted October 14, 2020 Author Share Posted October 14, 2020 2 hours ago, joseantgv said: Define PHP 7.1 version and clear cache. Tried this and no luck Any other ideas? I'm exhausted trying to fix this Link to comment Share on other sites More sharing options...
Juan Rios1 Posted October 14, 2020 Author Share Posted October 14, 2020 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 More sharing options...
Juan Rios1 Posted October 14, 2020 Author Share Posted October 14, 2020 I can change stock using the database It seems, but It's quite dificult with a whole ton of combinations Link to comment Share on other sites More sharing options...
Hridoy11 Posted October 9, 2021 Share Posted October 9, 2021 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. 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 More sharing options...
joseantgv Posted October 11, 2021 Share Posted October 11, 2021 Check the response in the "Network" tab in the Developer console (Ctrl + Shift + J). Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now