Jump to content

Error on a clean PS 1.5.6.1 installation


Recommended Posts

Hello,

 

I'm experiencing a strange error on a clean installation of PS 1.5.6.1.

 

Everything is fine until I disable all languages except english, and enable Friendly URLs. Then a ERR_TOO_MANY_REDIRECTS error appears when I try to access some pages like my-account or cart.

 

I've tried:

 

-Clearing the cache.

-Disabling the cache.

-Deleting the cookies.

-Regenerating the .htaccess by disabling/enabling friendly URLs.

-Deleting the .htaccess and making Prestashop create one new again.

-Checking php errors (all clear).

-Enabling PS_MODE_DEV to see if some error appears. Nothing.

-Reading Prestashop forums, looking for people with the same problem. Nothing.

 

This error seems to go away if I enable a second language, or if I disable Friendly URLs.

 

Any ideas what could be causing this?

 

Thanks.

Edited by awesomo (see edit history)
Link to comment
Share on other sites

Hello,

 

If the languages are deleted the error still happens.

I installed prestashop downloading the original package from the main page, uploading it via FTP and running the install script.

 

I've also tried the latest 1.5.6.1 version from github and the error occurs too, but instead of an infinite redirect loop, it shows this php error:

 

Warning: File (edited)/htdocs/prueba/my-account.php is deprecated
in (edited)/htdocs/prueba/classes/Tools.php on line 2136

Warning: Cannot modify header information - headers already sent by (output started at (edited)/htdocs/prueba/classes/Tools.php:2136) in (edited)/htdocs/prueba/classes/Tools.php on line 105

Warning: Cannot modify header information - headers already sent by (output started at (edited)/htdocs/prueba/classes/Tools.php:2136) in (edited)/htdocs/prueba/classes/Tools.php on line 108

 

Thanks.

Link to comment
Share on other sites

It's a clean install on a test site, everyone should be able to reproduce the error, isn't it?

 

Take a look on my site http://prestashop.webindoshop.com it's developed with Prestashop v.1.5.6.1

 

You might try to change the Friendly-URL of the second language for the error page

Back Office >  Preferences > SEO & URLs

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

Hello,

 

I can also reproduce the issue with prestashop 1.5.6.1 and with prestashop 1.5.6.2 (upgraded from 1.5.6.1).

 

The problem only arises when you have only one language enabled and this language is english. It seems that site/new-products is redirected to site/new-products.php and since new-products.php is deprecated that url redirects you to the previous one again... and there we got the loop.

 

As a workaround, you can change the friendly name. For instance, if you use new-offers instead of new-products, everything would work just fine.

 

Best regards.

Link to comment
Share on other sites

×
×
  • Create New...