Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Checkout SSL warning about nonsecure items


csaxvik

Recommended Posts

I have read all the posts on this and know that I can't have any external links to images etc. in my files but when I click on the checkout (I am using SSL), I get the SSL page but get the warning about showing secure and nonsecure items. I don't have any external links and when I look at the properties of the images that came with osCommerce, they are showing up as http links instead of https which is probably why I am getting this warning which customer do not like even though they may see https up in the address bar. I have the config file set to ssl but for some reason the SSL served pages all show the images as non ssl. I do not have any absolute links as they are all the original defined relative links to images in the original osCommerce. Does anyone know why this is?

Link to comment
Share on other sites

Can you post your URL?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

It's because of this in your HTML source:

 

<base href="http://multipowertools.com/oscommerce-2.2rc2/catalog/">

That was taken from the source in one of your "secure" pages.

 

May I send you a PM with something for you to do so I can help you get this sorted out?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Make a copy of /catalog/includes/application_top.php (keep it safe somewhere)

 

Edit the existing /catalog/includes/application_top.php

 

Find the line that says:

 

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

Replace that line with ..

 

//$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';
// non standard code added 01/30/08
$request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Try this:

 

//$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';
// non standard code added 01/30/08
$request_type = ($_SERVER['HTTPS'] == 'on') ? 'SSL' : 'NONSSL';

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

:sweating:

 

:lol:

 

:thumbsup:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

  • 9 months later...

Make a copy of /catalog/includes/application_top.php (keep it safe somewhere)

Edit the existing /catalog/includes/application_top.php

Find the line that says:

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

Replace that line with ..

CODE
//$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';
// non standard code added 01/30/08
$request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';

 

Jim ;

 

I was struggling with this same problem for HOURS. Thanks for the fix. Of course, it was the last post I read! The only difference that I may ad to other reading this post is make sure that you put you proper port in the code.

$request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL


[color="#FF0000"][b]=='443' is the port, i changed that bt to 80, which is my server port and BINGO!  Works fine.[/b][/color]

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...