balaizeben Posted October 25, 2016 Share Posted October 25, 2016 (edited) Bonjour, je rencontre un soucis depuis hier sur mon site, quand on clique pour ajouter un article au panier, j'ai un messsage d'erreur : " Impossible to add the product to the cart.textStatus: 'parsererror'errorThrown: 'SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 132 column 2 of the JSON data'responseText:{"products": [{"id": 436,"link": "https://www.infaudit.com/points-d-acces/436-cpl-dlan-500-wi-fi-4250059690844.html?ipa=0&ins=","quantity": 1,"priceByLine": "99,99 €","name": "CPL dLAN 500...","price": "99,99 €","price_float": "83.33","idCombination": 0,"idAddressDelivery": 31,"is_gift" : 0,"hasAttributes": false,"instructions": "","instructions_valid": "","hasCustomizedDatas": false,"customizedDatas":[]}, {"id": 1727,"link": "https://www.infaudit.com/boitiers-mini-tour/1727-bt-cooler-master-elite-343-noir-sans-alim-m-atx-rc-343-kkn1.html?ipa=0&ins=","quantity": 1,"priceByLine": "45,99 €","name": "BT COOLER MA...","price": "45,99 €","price_float": "38.33","idCombination": 0,"idAddressDelivery": 31,"is_gift" : 0,"hasAttributes": false,"instructions": "","instructions_valid": "","hasCustomizedDatas": false,"customizedDatas":[]}, {"id": 3939,"link": "https://www.infaudit.com/boitiers-mini-tour/3939-boitier-zalman-zm-t4-plus-noir.html?ipa=0&ins=","quantity": 2,"priceByLine": "55,98 €","name": "Boîtie...","price": "55,98 €","price_float": "46.66","idCombination": 0,"idAddressDelivery": 31,"is_gift" : 0,"hasAttributes": false,"instructions": "","instructions_valid": "","hasCustomizedDatas": false,"customizedDatas":[]}, {"id": 4740,"link": "https://www.infaudit.com/nvidia/4740-vga-msi-gtx-1060-gaming-x-6g.html?ipa=0&ins=","quantity": 1,"priceByLine": "388,99 €","name": "VGA MSI GTX ...","price": "388,99 €","price_float": "324.16","idCombination": 0,"idAddressDelivery": 31,"is_gift" : 0,"hasAttributes": false,"instructions": "","instructions_valid": "","hasCustomizedDatas": false,"customizedDatas":[]}, {"id": 5745,"link": "https://www.infaudit.com/nvidia/5745-vga-gigabyte-gtx-1060-g1-gaming-6gd-gv-n1060g1-gaming-6gd.html?ipa=0&ins=","quantity": 1,"priceByLine": "369,99 €","name": "VGA GIGABYTE...","price": "369,99 €","price_float": "308.33","idCombination": 0,"idAddressDelivery": 31,"is_gift" : 0,"hasAttributes": false,"instructions": "","instructions_valid": "","hasCustomizedDatas": false,"customizedDatas":[]}, {"id": 5747,"link": "https://www.infaudit.com/nvidia/5747-vga-gigabyte-gtx-1070-g1-gaming-gv-n1070g1-gaming-8gd.html?ipa=0&ins=","quantity": 1,"priceByLine": "558,99 €","name": "VGA GIGABYTE...","price": "558,99 €","price_float": "465.83","idCombination": 0,"idAddressDelivery": 31,"is_gift" : 0,"hasAttributes": false,"instructions": "","instructions_valid": "","hasCustomizedDatas": false,"customizedDatas":[]}, {"id": 5770,"link": "https://www.infaudit.com/gaming/5770--gigabyte-gtx1060-g1-gaming-3gd.html?ipa=0&ins=","quantity": 1,"priceByLine": "318,99 €","name": "GIGABYTE GTX...","price": "318,99 €","price_float": "265.83","idCombination": 0,"idAddressDelivery": 31,"is_gift" : 0,"hasAttributes": false,"instructions": "","instructions_valid": "","hasCustomizedDatas": false,"customizedDatas":[]}],"discounts": [],"shippingCost": "0,00 €","shippingCostFloat": "0","wrappingCost": "0,00 €","nbTotalProducts": "8","total": "1 838,92 €","productTotal": "1 838,92 €","hasError" : false}<link rel="stylesheet" type="text/css" href="/themes/default2/css/global.css"><div id="thawteseal" title="Click to Verify - This site chose Thawte SSL for secure e-commerce and confidential communications."><div><script type="text/javascript" src="https://seal.thawte.com/getthawteseal?host_name=www.infaudit.com&size=S&lang=fr"></script></div><div><a href="http://www.thawte.fr/ssl-certificates/" target="_blank" style="color:#000000; text-decoration:none; font:bold 10px arial,sans-serif; margin:0px; padding:0px;">À propos des certificats SSL</a></div></div> " Pour l'instant j'ai désactivé cette animation dans le module bloc panier. Avez vous une piste pou m'aider ? Je précise que je suis encore sous prestashop 1.5.6.2 avec la version 1.3 du bloc panier. Merci Edited November 2, 2016 by balaizeben (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted October 25, 2016 Share Posted October 25, 2016 (edited) Ce genre d'erreur n'arrive jamais toute seule^^ Le bloc <link rel="stylesheet" type="text/css" href="/themes/default2/css/global.css"> <div id="thawteseal" title="Click to Verify - This site chose Thawte SSL for secure e-commerce and confidential communications."> <div><script type="text/javascript" src="https://seal.thawte.com/getthawteseal?host_name=www.infaudit.com&size=S&lang=fr"></script></div> <div><a href="http://www.thawte.fr/ssl-certificates/" target="_blank" style="color:#000000; text-decoration:none; font:bold 10px arial,sans-serif; margin:0px; padding:0px;">À propos des certificats SSL</a></div> </div> " N'a rien à faire dans le retour json. Ce truc a dû être collé en dur dans un tpl ou dans un script. Supprimez-le et tout rentrera dans l'ordre^^ Edited October 25, 2016 by Eolia (see edit history) Link to comment Share on other sites More sharing options...
balaizeben Posted October 25, 2016 Author Share Posted October 25, 2016 Ce genre d'erreur n'arrive jamais toute seule^^ Le bloc <link rel="stylesheet" type="text/css" href="/themes/default2/css/global.css"> <div id="thawteseal" title="Click to Verify - This site chose Thawte SSL for secure e-commerce and confidential communications."> <div><script type="text/javascript" src="https://seal.thawte.com/getthawteseal?host_name=www.infaudit.com&size=S&lang=fr"></script></div> <div><a href="http://www.thawte.fr/ssl-certificates/" target="_blank" style="color:#000000; text-decoration:none; font:bold 10px arial,sans-serif; margin:0px; padding:0px;">À propos des certificats SSL</a></div> </div> " N'a rien à faire dans le retour json. Ce truc a dû être collé en dur dans un tpl ou dans un script. Supprimez-le et tout rentrera dans l'ordre^^ Bonjour et merci, je n'y connais pas gran,d chose, mais "thawte" est mon certificat SSL. Ce que je ne comprend pas, c'est que cela fonctionné bien hier, et aujourd'hui j'ai une erreur ?? Bizarre... Du coup, je ne sais pas où cela peut se trouver ?? Merci Link to comment Share on other sites More sharing options...
Eolia Posted October 25, 2016 Share Posted October 25, 2016 un module mis à jour ? Il y a forcément eu un événement Link to comment Share on other sites More sharing options...
balaizeben Posted October 25, 2016 Author Share Posted October 25, 2016 J'ai juste mis à jour le module Paypal, mais apparemment sur un autre site de test où le module Paypal n'a pas été mis à jour , j'ai le même problème... Bizarre, je ne vois pas bien... Link to comment Share on other sites More sharing options...
balaizeben Posted October 25, 2016 Author Share Posted October 25, 2016 Je précise que j'ai fais un essai sur une copie de mon site qui me servais de test, mais dans lequel je n'y apporté aucune modification depuis quelques mois et, je rencontre le même problème !! Comment est-ce possible sachant que je n'y ai apporté aucune modification ?? Une piste ? D'avance merci Link to comment Share on other sites More sharing options...
balaizeben Posted November 2, 2016 Author Share Posted November 2, 2016 Bonsoir, juste pour signaler que mon problème de panier est réglé, il s'agissait effectivement du logo " Thawte " du certificat SSL qui embêté le monde... Une fois retiré, tout est revenu en ordre. Merci 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