Recently i tried to upgrade a Prestashop system from version 1.5 to 1.6. The upgrade scripts shows no error, but when i go there are some hiccups at the backend. When i tried to upload thumbnail for my category, the upload failed. And it show the error message “Unexpected token <“. After some testing and debugging still the same, at the end i tried to reset the Category module and it magically solve the problem!
To solve “Unexpected token <” error when upload category thumbnail in prestashop 1.6, follow the steps below:-
- Login to prestashop backend
- Go to Module -> look for Category Block
- Click on “Reset”
- Now you can try to upload your thumbnail again, it should be fine now 🙂