Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

SSL Error on Stock osCommerce install


Recommended Posts

I have a stock osCommerce site on my server, no changes since installation, and my Webhosting company just installed my SSL.


I set up my includes/configure.php page properly, but when I go to the shopping_cart I get a 'This page has both secure and insecure items' message.


The only images are: the image of camron diaz from 'something about mary' in the new items box, my oscommerce.gif in my header, and the buttons. Each one of these is entirely an oscommerce install and are coming up as HTTP://My_site_.com/catalog/images/oscommerce.gif they are not showing as HTTPS. I do not have any hotlinks on the page to cause this message.


Does anyone have an idea on how to fix this? I am lost...?

Link to comment
Share on other sites

OK - so I may have found the answer in a seperate post to my question above-


Here is what I did - In includes/application_top.php I replaced this


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


With This


$request_type = ($_SERVER['SERVER_PORT'] == '443') ? 'SSL' : 'NONSSL';


However - I get this message now when I attempt to login -"security alert - you are about to be redirected to an insecure site and information can be retransmitted. Do you want to continue?"


Does anyone have any ideas to help me out?

Link to comment
Share on other sites

The Problem has Been Fixed. When a customer would attempt to re-login after creating an account they would get a message that said they were being redirected to a non secure page and information could be transmitted. It is because it was not forwarding to the HTTPS index.php page after login it was going to my HTTP. Problem is now fixed.

Link to comment
Share on other sites


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

  • Create New...