[SOLVED] JSON.parse: unexpected character at line 1 column 1 of the JSON data when importing CSV into Prestashop.

Published in Prestashop 1.6

I’m going to go out on a limb and say you're here because got the "JSON.parse: unexpected character" etc error while trying to import a CSV into Prestashop, but you can’t see any reason why.

JSON parse unexpected character at line 1 column 1 of the JSON data when importing CSV into Prestashop

Well it’s so simple to fix it’s stupid. This is an erroneous error because there is actually nothing wrong, well nothing with the code anyway. It’s just that for whatever reason, the paged has timed out and now you are no longer logged in.



The “JSON.parse: unexpected character at line 1…” error normally appears when you choose a csv import file that is so large, by the time you return to the page where you can start the import, the page has timed out an you are no longer logged on. Fear not, the solution is simple: Prestashop will still be set to import the same file, so all you have to do is refresh the page, login and start importing.

You should be able to complete the CSV import in Prestashop without being the error: “JSON.parse: unexpected character at line 1 column 1 of the JSON data when importing CSV into Prestashop.”