Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help - Popup errors b/c of nonsecure items on the page


joeyjgarcia

Recommended Posts

Posted

my site, www.goodnewsclothing.com, is getting popups (only in IE) when the site goes secure (https). To see the popups you would have use IE and create an account, then it goes secure and also when you start your checkout process.

 

I don't see anything different on my site than anyone of my competitors, can someone help??????

 

I can't solicit any help for a fee (rules of the board) but I would be very appreciative and willing to hear any offers.

 

I just need help on this one.

Posted

Either remove or change the links for images/resources to match the secure/non-secure connection. Currently you have this on your secure pages.

 

<td valign="middle" align="center" width=150><a href="http://www.goodnewsclothing.com/index.php"><img src="images/gn_logo.gif" border="0" alt="Christian T-Shirt, Christian T Shirt, Christian TShirt" title=" Christian T-Shirt, Christian T Shirt, Christian TShirt " width="106" height="86"></a> </td>

has to be to https when you view secure pages. It happens because you're hard-coding internal links; instead you should use the tep_href_link function

Posted

Aaah, finally some help.. Thanks for your time!

 

I looked to make sure but I am not hard-coding any links. Here is a copy of the code you pulled out.

 

<td valign="middle" align="center" width=150><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES .
'gn_logo.gif', 'Christian T-Shirt, Christian T Shirt, Christian TShirt') . '</a>'; ?>  </td>
<td align="right" valign="bottom">

 

I know early on (like 2 years ago) I had this problem and I fixed it, I think it was the Google AdSense code back then.

 

 

Question: Shouldn't the tep_href_link function be adding the https prefix when it goes secure?

 

 

That code seems to never use the https variety because the $connection attribute is never passed in as "SSL".

 

e.g.:

function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL',

 

Wouldn't it make more sense to set it like this, I can't see it ever going secure.

 

function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', 
 if( $request_type == 'SSL')$connection = 'SSL';

Posted

yea well the spider I was looking with got off to the cookies info page. So anyways here is one.

 

www.goodnewsclothing.com/images/favFolder.gif

has http in front on secure pages.

 

There might be others so concentrate first on the header/footer and left/right panels.

Archived

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

×
×
  • Create New...