Rhapsody Posted August 30, 2013 Share Posted August 30, 2013 I upgraded two shops from 1.5.4.1 to 1.5.5.0 - both shops have SSL and use friendly URLs. There is a problem when logged in with a page that uses SSL. If the user clicks on logout from an SSL page, they are logged out and directed to the 404 page not available screen. Page not available We're sorry, but the Web address you entered is no longer available To find a product, please type its name in the field below This does not occur if the user clicks logout from a page that does not use SSL. In the BO if I disable friendly URL, it fixes the problem. I have cleared the cache, forced compile, etc and the problem still occurs. This behavior is on my custom modified theme, and the PS default them, so isn't theme related. Does anyone else have this problem, or is it unique to my installations? Any suggestions on how to fix it? 1 Link to comment Share on other sites More sharing options...
dformica Posted September 6, 2013 Share Posted September 6, 2013 Same problem here with new install 1.5.5.0 Link to comment Share on other sites More sharing options...
Nerque Posted September 6, 2013 Share Posted September 6, 2013 The same. Here you can see the same problem: http://www.prestashop.com/forums/topic/272338-log-out-page-show-404-error-after-upgrade-to-1550/ Link to comment Share on other sites More sharing options...
Nerque Posted September 6, 2013 Share Posted September 6, 2013 By the moment you can try to override the PageNotFoundController with this (this is not a real solution): class PageNotFoundController extends PageNotFoundControllerCore { public function initContent() { //$_SERVER['REQUEST_URI'] //$_SERVER['HTTPS'] //$_SERVER['SERVER_NAME']) $_mylogout = (strpos($_SERVER['REQUEST_URI'], 'index.php?controller=') !== false); if ($_mylogout) header("Location: http://" . $_SERVER['SERVER_NAME']); else { header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); if (in_array(Tools::strtolower(substr($_SERVER['REQUEST_URI'], -3)), array('png', 'jpg', 'gif'))) { header('Content-Type: image/gif'); readfile(_PS_IMG_DIR_.'404.gif'); exit; } elseif (in_array(Tools::strtolower(substr($_SERVER['REQUEST_URI'], -3)), array('.js', 'css'))) exit; parent::initContent(); $this->setTemplate(_PS_THEME_DIR_.'404.tpl'); } } } Link to comment Share on other sites More sharing options...
dformica Posted September 12, 2013 Share Posted September 12, 2013 Anybody has the official solution to this? Link to comment Share on other sites More sharing options...
James_oe Posted September 12, 2013 Share Posted September 12, 2013 Same problem here, a solution would be very much appreciated! Link to comment Share on other sites More sharing options...
Kier Posted September 12, 2013 Share Posted September 12, 2013 I have the same exact problem!! Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 18, 2013 Share Posted September 18, 2013 Hello, I can see that many people are having the same issue. What version of the upgrade module did you use? Does it work with ssl turned off? Link to comment Share on other sites More sharing options...
dformica Posted September 18, 2013 Share Posted September 18, 2013 I now have a fresh install 1.5.5.0 same problem. 404 page when logging out from a secure page. Logging out from non-secure pages is fine. Link to comment Share on other sites More sharing options...
Rhapsody Posted September 18, 2013 Author Share Posted September 18, 2013 Hello, I can see that many people are having the same issue. What version of the upgrade module did you use? Does it work with ssl turned off? I used 1 click upgrade module 1.0.26 which was the current version at the time of the upgrade. Per my original post I don't have the problem by turning off SSL or disabling friendly URLs. This problem wasthe same on 3 shops I tried to upgrade. Rather than live with problem, I elected to wait until some of the bugs in 1.5.5.0 get fixed and continue running 1.5.4.1 on these shops. Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 19, 2013 Share Posted September 19, 2013 Hello all, please use this Github solution and let me know if it works. -https://github.com/PrestaShop/PrestaShop/commit/6aad506c80ee6948856587f0863b73c13eab5f2e Always remember to have a complete back up! 1 Link to comment Share on other sites More sharing options...
dformica Posted September 19, 2013 Share Posted September 19, 2013 Hello all, please use this Github solution and let me know if it works. -https://github.com/PrestaShop/PrestaShop/commit/6aad506c80ee6948856587f0863b73c13eab5f2e Always remember to have a complete back up! Thanks! that worked perfectly. Link to comment Share on other sites More sharing options...
rintro Posted September 19, 2013 Share Posted September 19, 2013 Worked. Thanks! Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 19, 2013 Share Posted September 19, 2013 Awesome! I'm glad to hear I could help. If it does not work then it's probably a separate issue. For now I will go ahead and mark this as SOLVED thank you very much! Link to comment Share on other sites More sharing options...
James_oe Posted September 25, 2013 Share Posted September 25, 2013 Solution worked perfectly. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts