DanielInternovam Posted June 19, 2019 Share Posted June 19, 2019 Hello , I get this error when uploading product images Unexpected token < in JSON at position 0 Does anyone know which side of the code I can solve this? or how can I solve it? I thank you in advance. Link to comment Share on other sites More sharing options...
musicmaster Posted June 21, 2019 Share Posted June 21, 2019 This is the product from some AJAX process. The ajax returns something unexpected. Then the code that made the ajax call and receives the answer doesn't know how to handle it and produces an error. It may be good to remember that an ajax call just runs a php routine. And the reason something unexpected was returned is usually that there was some php or mysql error. You can see the ajax exchange in your browser console (f12 in Chrome) and then choosing the network tab. You have to run the ajax after you opened this tab. Then you click the connection and make your selection in a submenu. Link to comment Share on other sites More sharing options...
DanielInternovam Posted June 21, 2019 Author Share Posted June 21, 2019 (edited) hello @musicmaster thanks for answering, do you know what part of prestashop is that code? I mean, what script .tpl is that part of uploading images to products? I appreciate your response. Edited June 21, 2019 by DanielInternovam (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted June 21, 2019 Share Posted June 21, 2019 See my other post Link to comment Share on other sites More sharing options...
TechWizard Posted June 22, 2019 Share Posted June 22, 2019 This was helpful, I joined to get info on the same thing. Link to comment Share on other sites More sharing options...
DanielInternovam Posted June 24, 2019 Author Share Posted June 24, 2019 I searched in a lot of forums and documentation, and apparently there is no reasonable movement because of this error or a functional solution, so the only thing that I am doing was to update prestashop, for now everything is fine. 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