[ Zen Cart ] SSL Pages unreachable ...

Technical difficulties? Ask for help here.

[ Zen Cart ] SSL Pages unreachable ...

Postby testuser on Fri Jun 27, 2008 9:18 pm

Hello,

Using Zen Cart SEO mod and can't seem to get to any secure pages on the catalog side.

FireFox gives the error:
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
testuser
 
Posts: 5
Joined: Fri Jun 27, 2008 9:15 pm

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby ~J~ on Fri Jun 27, 2008 10:15 pm

This usually happen when web server is configured incorrectly (SERVER_PORT variable is wrong).
~J~ | [Product manager]
Magic SEO URL - The definitive SEO Enhancement
~J~
Magic SEO URL Founder
 
Posts: 249
Joined: Sat Feb 02, 2008 4:07 pm
Location: Prague, Czech Republic

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby testuser on Sat Jun 28, 2008 2:54 pm

Can you go into any detail on how Magic uses that? It works fine without the mod, but when enabled the error occurs.

Any ideas on how to solve it?
testuser
 
Posts: 5
Joined: Fri Jun 27, 2008 9:15 pm

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby ~J~ on Sat Jun 28, 2008 3:20 pm

What is your Zen Cart URL?

I need to see phpinfo() output or at least some HTTP headers in order to provide appropriate work around.
~J~ | [Product manager]
Magic SEO URL - The definitive SEO Enhancement
~J~
Magic SEO URL Founder
 
Posts: 249
Joined: Sat Feb 02, 2008 4:07 pm
Location: Prague, Czech Republic

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby testuser on Sat Jun 28, 2008 4:13 pm

http://xxxxx.com/jmodzen.php
Last edited by testuser on Mon Jun 30, 2008 10:07 am, edited 1 time in total.
testuser
 
Posts: 5
Joined: Fri Jun 27, 2008 9:15 pm

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby ~J~ on Sat Jun 28, 2008 9:16 pm

Issue you are experiencing is caused by incorrect value of HTTP_HOST variable when HTTPS is used. Please place following code before installation line:

Code: Select all
$_SERVER['HTTP_HOST'] = substr($_SERVER['HTTP_HOST'], 0, strpos($_SERVER['HTTP_HOST'], ':') - strlen($_SERVER['HTTP_HOST']));
~J~ | [Product manager]
Magic SEO URL - The definitive SEO Enhancement
~J~
Magic SEO URL Founder
 
Posts: 249
Joined: Sat Feb 02, 2008 4:07 pm
Location: Prague, Czech Republic

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby testuser on Sun Jun 29, 2008 1:20 pm

Ok that got the secure pages functioning properly, but now the non-secure pages throw the same error as before.

What's causing that?
testuser
 
Posts: 5
Joined: Fri Jun 27, 2008 9:15 pm

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby ~J~ on Sun Jun 29, 2008 1:50 pm

Then use this code (I am not sure it will work - phpinfo is no longer available):

Code: Select all
if($_SERVER['HTTPS'] == 'on') $_SERVER['HTTP_HOST'] = substr($_SERVER['HTTP_HOST'], 0, strpos($_SERVER['HTTP_HOST'], ':') - strlen($_SERVER['HTTP_HOST']));
~J~ | [Product manager]
Magic SEO URL - The definitive SEO Enhancement
~J~
Magic SEO URL Founder
 
Posts: 249
Joined: Sat Feb 02, 2008 4:07 pm
Location: Prague, Czech Republic

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby testuser on Mon Jun 30, 2008 10:06 am

Problem solved.

Is this a host configuration error that causes this to happen, or a combination of the script and the server settings?
testuser
 
Posts: 5
Joined: Fri Jun 27, 2008 9:15 pm

Re: [ Zen Cart ] SSL Pages unreachable ...

Postby ~J~ on Mon Jun 30, 2008 10:12 am

It is host configuration error (HTTP_HOST variable have to match http host in URL).
~J~ | [Product manager]
Magic SEO URL - The definitive SEO Enhancement
~J~
Magic SEO URL Founder
 
Posts: 249
Joined: Sat Feb 02, 2008 4:07 pm
Location: Prague, Czech Republic


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 0 guests

cron