Rohans Posted August 28, 2013 Share Posted August 28, 2013 Hello Everyone, We are facing an error on our website after we upgraded it to the latest version of Prestashop i.e. 1.5.4.1. Actually, we have recently upgraded from the old version of Prestashop and put our site on live server. Later on we installed SSL certificate on our server for our main domain. Now, whenever we enable the SSL from back office of Prestashop; it works fine and add "https" to the certain URLs e.g. cart page, my account page etc. But, after enabling the SSL we are not able to add products to the cart. Whenever customer clicks "Add to Cart" button it shows an error saying "Impossible to add the product to the cart". A screenshot showing error message is attached. I have seen similar issue faced by several other users and have also seen that max of them mentioned that latest module of "PayPal" is causing this error. But, I have even downgraded the PayPal module from its latest version but still the error is there and as a result we are not able enable SSL on our site. Please provide your thoughts on this issue. Expecting some help soon :-) Thanks in advance!! Link to comment Share on other sites More sharing options...
El Patron Posted August 28, 2013 Share Posted August 28, 2013 what do you have for shop domain and shop domain ssl? if they are not the same...then cart will break (my understanding) Link to comment Share on other sites More sharing options...
Rohans Posted August 28, 2013 Author Share Posted August 28, 2013 Hi El Patron, Thanks for your response. Well, both shop and ssl domains are same e.g. www.abc.com Thanks!! Link to comment Share on other sites More sharing options...
El Patron Posted August 28, 2013 Share Posted August 28, 2013 try disabling paypal and see if it still happens... Link to comment Share on other sites More sharing options...
vekia Posted August 28, 2013 Share Posted August 28, 2013 you should check browser console log, i think that we can hint there what's going on, especially in ajax query results Link to comment Share on other sites More sharing options...
Rohans Posted August 28, 2013 Author Share Posted August 28, 2013 (edited) Thanks guys!! I have disabled the paypal module and tried it again by enabling the SSL and now along with the popup error message; in browser console I can see something that says "301 Moved Permanently". Any ideas please? Edited August 28, 2013 by Rohans (see edit history) Link to comment Share on other sites More sharing options...
Rohans Posted August 29, 2013 Author Share Posted August 29, 2013 Hello Everyone, Well, the issue is sorted out finally. Actually I need to modifying/commenting the first part of the check SSL or Secure Mode condition in Frontcontroller.php file: File: ROOT/classes/controller/Frontcontroller.php Line #s: 117-133 /* if ($this->ssl && !Tools::usingSecureMode() && Configuration::get('PS_SSL_ENABLED')) { header('HTTP/1.1 301 Moved Permanently'); header('Cache-Control: no-cache'); header('Location: '.Tools::getShopDomainSsl(true).$_SERVER['REQUEST_URI']); exit(); } else */ if (Configuration::get('PS_SSL_ENABLED') && Tools::usingSecureMode() && !($this->ssl)) { header('HTTP/1.1 301 Moved Permanently'); header('Cache-Control: no-cache'); header('Location: '.Tools::getShopDomain(true).$_SERVER['REQUEST_URI']); exit(); } I found the idea from the following similar post : http://www.prestashop.com/forums/topic/155662-critical-ssl-bug-in-ps-147-fix-inside/page__pid__1356851__st__60?do=findComment&comment=1356851 Thanks everyone for their interest and suggestions!! I consider this post as "solved". Link to comment Share on other sites More sharing options...
ricky11 Posted December 23, 2013 Share Posted December 23, 2013 HI Guys, a lot or shall i say everyone with the latest version of PS with ssl certificate will have this error, is their a roadmap bug fix so that this issue will be resolved in future releases? thanks. Link to comment Share on other sites More sharing options...
vekia Posted December 24, 2013 Share Posted December 24, 2013 any chance to get your page url to inspect it? Link to comment Share on other sites More sharing options...
Recommended Posts