Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

White page moving from http to https


Guest

Recommended Posts

Hi,

I have searched and searched on this forum and on the web and still cannot figure out the issue.

 

I am having trouble with white or blank pages showing on the site. This generally happens randomly when the site switches between http and https. The user will click to go to the next page and a blank page will be displayed instead of the correct page. If you click refresh the page is displayed properly. This happens randomly, there is not set page that it happens on. Generally it only happens when in HTTPS. We have correctly installed a GEOTrust SSL certificate and it is working properly.

 

My general feeling is that it is a session variable issue. We currently are storing the sessions in mySQL - define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

I have also added Search Engine Safe URLs, but have not turned it on, since I cannot get it to work in Windows.

 

We are running osCommerce on our own servers with Windows 2003/IIS6. We have not had any trouble with other websites running PHP and SSL, but none of them run osCommerce.

 

I have edited the configure.php located in the includes directory like this:

 

define('HTTP_SERVER', 'http://www.terracorporation.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.terracorporation.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', 1); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.terracorporation.com');

define('HTTPS_COOKIE_DOMAIN', '');

 

I have also edited the application_top.php file, per some threads that I found.

 

// set the type of request (secure or not)

//$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

//$request_type = (eregi ($HTTP_HOST, HTTPS_SERVER)) ? 'SSL' : 'NONSSL';

//$request_type = (getenv('HTTPS') == 'on' or getenv('SERVER_PORT') == 443) ? 'SSL' : 'NONSSL';

$request_type = $_SERVER['HTTPS'] ? 'SSL' : 'NONSSL';

 

I have tried all of the remarked $request_type lines to no avail.

 

Thanks for any help on this subject.

Link to comment
Share on other sites

Why are you using this:

 

define('ENABLE_SSL', 1);

 

The only people I know who need to use this are those hosted with 1and1

 

Normally it would read;

 

define('ENABLE_SSL', true);

 

You have other problems on your site. When I try to add an item to the basket it adds 5 of them, and when I mark this down to 1 and click Update it still records 5

 

Your https_cookie_domain is blank in your post, and this should be the same as for your http_cookie_domain

 

Vger

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...