[ Zen Cart ] SSL Pages unreachable ...

Technical difficulties? Ask for help here.

[ Zen Cart ] SSL Pages unreachable ...

Postby testuser » 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~ » Fri Jun 27, 2008 10:15 pm

This usually happen when web server is configured incorrectly (SERVER_PORT variable is wrong).
~J~
Magic SEO URL products are now part of the Inveo s.r.o. portfolio.
~J~
Magic SEO URL Founder
 
Posts: 713
Joined: Sat Feb 02, 2008 4:07 pm
Location: Prague, Central Europe

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

Postby testuser » 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~ » 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~
Magic SEO URL products are now part of the Inveo s.r.o. portfolio.
~J~
Magic SEO URL Founder
 
Posts: 713
Joined: Sat Feb 02, 2008 4:07 pm
Location: Prague, Central Europe

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

Postby testuser » 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~ » 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~
Magic SEO URL products are now part of the Inveo s.r.o. portfolio.
~J~
Magic SEO URL Founder
 
Posts: 713
Joined: Sat Feb 02, 2008 4:07 pm
Location: Prague, Central Europe

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

Postby testuser » 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~ » 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~
Magic SEO URL products are now part of the Inveo s.r.o. portfolio.
~J~
Magic SEO URL Founder
 
Posts: 713
Joined: Sat Feb 02, 2008 4:07 pm
Location: Prague, Central Europe

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

Postby testuser » 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~ » Mon Jun 30, 2008 10:12 am

It is host configuration error (HTTP_HOST variable have to match http host in URL).
~J~
Magic SEO URL products are now part of the Inveo s.r.o. portfolio.
~J~
Magic SEO URL Founder
 
Posts: 713
Joined: Sat Feb 02, 2008 4:07 pm
Location: Prague, Central Europe


Return to Troubleshooting

Who is online

Registered users: Google [Bot], Yahoo [Bot]

cron