Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Security Level: All-users
-
Labels:None
-
Similar issues:
PSCFI-5013SSL redirecting loop on adminPSCFI-3000SSL enabled redirect loop for admin login V1.4.3PSCFI-4046SSL rederict loop in adminPSCFI-5133Redirect loop in cashondelivery modulePSCFI-1008SSL redirect loop and logo.jpg returned as httpPSCFI-1249Reopened - SSL redirect loop and logo.jpg returned as httpPSCFI-5200Redirect loop for admin login still occurs in V1.4.7PSCFI-4044Error 310 (net::ERR_TOO_MANY_REDIRECTS) on order.php with SSL on
Description
There are 2 problems that i encountered when i enabled a dedicated ssl certificate with 1and1.com shared hosting.1) 301 redirect loop2) not all content was httpsFor the redirect issue, I noticed the problem for me was in the FrontController.php. The code checks if the variable $_SERVER['HTTPS']) == 'on'.However for me the value is '1' and not 'on'. After changing the code to check for '1', then the redirect issue went away.However when i visited a page under https, i was getting the warning that not all content was being returned securely. The problem was the logo.jpg image.So i went and changed all remaining code to check for '1' and not 'on' and everything is working properly.I'm not sure why in my case the value is '1' and not 'on', but it would appear that the code should handle both scenarios?
Issue Links
| Cloners | |||
|---|---|---|---|
|
|
|
||
I had the problem described above in 1.4.0.17...
Now, I upgraded to 1.4.1 and the problem is gone from the frontend but it is present in the backend (admin).
Once I logout from the admin (after enabling SSL), I am unable to login again because of the loop error. The only way I found to get in admin again is to edit directly the table "ps_configuration" and change the value of PS_SSL_ENABLED to 0...