MGLimhamn Posted October 4, 2013 Share Posted October 4, 2013 Hi, I just started a new webshop using PrestaShop 1.5.4.1 and when I click the cart in the top right corner, I get sent to mysite.com/order but then it redirects itself to an error page as seen in the picture below: Here's an English translation of the error message: The page is redirected incorrectly Firefox has detected that the server redirects the request on this site in a way that makes a completion impossible. This problem may occur if you are disabled or refused to accept cookies. But I have never disabled cookies, I cleared my cookies earlier today though, but I've done that many times before but never gotten this error before. And I've never got this on my other webshop either so I don't know how to solve it, can anyone help me with this? Link to comment Share on other sites More sharing options...
vekia Posted October 4, 2013 Share Posted October 4, 2013 can you try without friendly urls ? have you tried to regenerate .htaccess file? it might be related to this Link to comment Share on other sites More sharing options...
MGLimhamn Posted October 7, 2013 Author Share Posted October 7, 2013 Hi vekia, I tried without friendly urls and then it worked. When I enabled it again, I get the same error. Link to comment Share on other sites More sharing options...
vekia Posted October 7, 2013 Share Posted October 7, 2013 can you open preferences >seo & urls tab and change "cart" page use other friendly url, for example shopping-cart and then try to turn on friendly urls Link to comment Share on other sites More sharing options...
MGLimhamn Posted October 7, 2013 Author Share Posted October 7, 2013 I don't know when /cart ever gets used but I it's /order that's redirecting wrong and when I change the friendly url for /order to /ordersv for example, it works just fine. However, I want to use the word order. How can I solve this? Link to comment Share on other sites More sharing options...
MGLimhamn Posted October 9, 2013 Author Share Posted October 9, 2013 Do you know vekia? Link to comment Share on other sites More sharing options...
vekia Posted October 9, 2013 Share Posted October 9, 2013 i can't reproduce this issue on my own demo store so i have no idea what's going on there - it looks like issue with .htaccess file can you show how your .htaccess file looks like ? i will inspect code there Link to comment Share on other sites More sharing options...
MGLimhamn Posted October 9, 2013 Author Share Posted October 9, 2013 This is how my .htaccess looks like:# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forumsphp_value max_input_vars 10000<IfModule mod_rewrite.c>RewriteEngine onRewriteCond %{HTTP_HOST} ^hornanpalimhamn.se$RewriteRule . - [E=REWRITEBASE:/]RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]# ImagesRewriteCond %{HTTP_HOST} ^hornanpalimhamn.se$RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]RewriteCond %{HTTP_HOST} ^hornanpalimhamn.se$RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]RewriteCond %{HTTP_HOST} ^hornanpalimhamn.se$RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]RewriteCond %{HTTP_HOST} ^hornanpalimhamn.se$RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]RewriteCond %{HTTP_HOST} ^hornanpalimhamn.se$RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]RewriteCond %{HTTP_HOST} ^hornanpalimhamn.se$RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]RewriteCond %{HTTP_HOST} ^hornanpalimhamn.se$RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]RewriteCond %{HTTP_HOST} ^hornanpalimhamn.se$RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]RewriteCond %{HTTP_HOST} ^hornanpalimhamn.se$RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]RewriteCond %{HTTP_HOST} ^hornanpalimhamn.se$RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]# AlphaImageLoader for IE and fancyboxRewriteCond %{HTTP_HOST} ^hornanpalimhamn.se$RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]# DispatcherRewriteCond %{REQUEST_FILENAME} -s [OR]RewriteCond %{REQUEST_FILENAME} -l [OR]RewriteCond %{REQUEST_FILENAME} -dRewriteCond %{HTTP_HOST} ^hornanpalimhamn.se$RewriteRule ^.*$ - [NC,L]RewriteCond %{HTTP_HOST} ^hornanpalimhamn.se$RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]</IfModule><IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year"</IfModule>FileETag INode MTime Size<IfModule mod_deflate.c> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript </IfModule></IfModule>#If rewrite mod isn't enabledErrorDocument 404 /index.php?controller=404# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Link to comment Share on other sites More sharing options...
MGLimhamn Posted October 11, 2013 Author Share Posted October 11, 2013 Bump... Link to comment Share on other sites More sharing options...
MGLimhamn Posted October 14, 2013 Author Share Posted October 14, 2013 I've temporarily changed the friendly url to something else just to get it to work for so long. Have you inspected the code vekia? Thanks for helping out, it's greatly appreciated Link to comment Share on other sites More sharing options...
vekia Posted October 14, 2013 Share Posted October 14, 2013 yes i inspected it, the problem is in fact that everything looks fine there problem must be somewhere else, for example in dispatcher class Link to comment Share on other sites More sharing options...
MGLimhamn Posted October 14, 2013 Author Share Posted October 14, 2013 Okay, that's unfortunate. Do you mean the classes/Dispatcher.php file? If so, it has 772 lines. How can you easily inspect it? Link to comment Share on other sites More sharing options...
MGLimhamn Posted October 21, 2013 Author Share Posted October 21, 2013 Bump... Link to comment Share on other sites More sharing options...
Recommended Posts