Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Secure and non-secure items warning


Patrick Taylor

Recommended Posts

Posted

Each time I go from one secure page to another, I get the usual warning:

 

"This page contains both secure and non-secure items. Do you want to display the non-secure?"

 

I'm sure this will have come up before. The pages display correctly whichever I select but it impedes presentation. How can I remove this? Is it an error in my config file?

 

Regards,

 

Patrick

Posted

Usually this means that some of the images are being displayed as http: rather than https: Two ways to look for the problem: one, say no and look for broken images; two, view the HTML source from your browser and search for http:. You might have to save the page locally and open it in WordPad or something to do this.

 

Hth,

Matt

Posted

Thanks, but when I select "no" there are no broken images - everything displays correctly - and there are no http images in the page source - several a href links to http but no images. Is there any other line to explore?

 

Regards,

 

Patrick

Posted

I've found the problem and done a temporary fix. I was using a .swf Flash file in my header like so:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">
   <td valign="middle"><script language="JavaScript1.1" src="art-by-post-flash.js" type="text/javascript"></script></td>
   <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>
 </tr>
</table>

 

The code for the Flash file was contained in a JavaScript file art-by-post-flash.js.

 

Now having replaced the .swf file with a .jpg image and altered my header like so:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">
   <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'art-by-post-header.jpg', 'header image') . '</a>'; ?></td>
   <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>
 </tr>
</table>

 

the problem no longer occurs.

 

So do you know how I can place a .swf file in my header without the original problem arising?

 

Regards,

 

Patrick

Archived

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

×
×
  • Create New...