meubletmoi Posted May 20, 2015 Share Posted May 20, 2015 (edited) Bonjour à toi qui lira ce poste !Tu rêves secrètement de sauver une jeune et jolie stagiaire ( franchement ) en difficulté ?Ne rêve plus ta vie, vie tes rêves.Quelle belle journée pour ne bonne action, n'est ce pas ?! FRANÇAIS : Je ne parviens plus à importer des images depuis quelques jours.Le message d'erreur varie d'un navigateur à l'autre :Firefox: "JSON.parse: unexpected character at line 1 column 1 of the JSON data"Chrome: "Unexpected token "Pour certaines images, je ne rencontre aucun problème et l'import se fait correctement sans erreur notoire. J'ai pensé que ça dépendait peut être de la taille d'images >1MB, mais ce n'est pas cas.Le problème persiste pour de petites images de 600KB par exemple.ENGLISH :It seem i cant upload product images.The error varies by the browser used:Firefox: "JSON.parse: unexpected character at line 1 column 1 of the JSON data"Chrome: "Unexpected token "With some images, the error doesn't appear, I can imagine it depends on size >1MB, but some tiny images (600kb) fire the error too.Une idée ? :/ Edited May 20, 2015 by meubletmoi (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted May 20, 2015 Share Posted May 20, 2015 Some error message is probably returned instead of valid JSON. Can you see more details in browser console? Link to comment Share on other sites More sharing options...
meubletmoi Posted May 20, 2015 Author Share Posted May 20, 2015 Where could I see it? Thanks for your help Link to comment Share on other sites More sharing options...
tuk66 Posted May 20, 2015 Share Posted May 20, 2015 Console in /Firebug/Firefox. Try F12 in Chrome. Link to comment Share on other sites More sharing options...
meubletmoi Posted May 20, 2015 Author Share Posted May 20, 2015 Thanks for your answer, there is this error (in attachement file). Link to comment Share on other sites More sharing options...
tuk66 Posted May 20, 2015 Share Posted May 20, 2015 product.js:186 is my favorite Link to comment Share on other sites More sharing options...
meubletmoi Posted May 20, 2015 Author Share Posted May 20, 2015 Here's your favorite if ((status === 'abort' || status === 'error' || request.responseText.length == 0 || in_array(request.status, wrong_status_code) || self.stack_error.length !== 0) && !self.page_reloading) Link to comment Share on other sites More sharing options...
IgorSB Posted June 16, 2015 Share Posted June 16, 2015 What is your image extension... .JPG or .jpg. I was have problem with image extension. Error was "JSON.parse: unexpected character at line 1 column 1 of the JSON data" and I just change .JPG to .jpg and problem have been solved. Link to comment Share on other sites More sharing options...
Guest locen Posted April 1, 2016 Share Posted April 1, 2016 Hi, I have problems when i add image in cms page. i can't add image by click but i should follow these passages to insert images. can someone help me? Link to comment Share on other sites More sharing options...
Recommended Posts