My Customers Visitors Are Complaining Of Secure And Nonsecure Items Popup
my customers visitors are complaining of secure and nonsecure items popup
my, customers, visitors, are, complaining, of, secure, and, nonsecure, items, popup
My Customers Visitors Are Complaining Of Secure And Nonsecure Items Popup
Post Description: my customers visitors are complaining of secure and nonsecure items popup
POST# 644
Posted On: Fri Feb 29, 2008 12:01 pm
mister_MR2
Topic: My Customers Visitors Are Complaining Of Secure And Nonsecure Items Popup
I have a webpage with a shoping cart, i have installed the ssl to my site with https, but lately, i've been getting complaints from customers and visitors telling me that they are getting a popup window that says:


     Quote:
This Page contains both secure and nonsecure items
do you want to display the nonsecure items?


I've look at my code, and it all appears to be ok. is it something to do with their computer? Is this a user issue?

Any Help you can provide will be helpful
Share:
BBCODE:
HTML Code:


Mon Nov 27, 2006 2:32 am
1
mister_MR2
Reply #1459
Both actually, but the root cause of this error is poor website design. Whoever designed your site, didn't do a good job at linking all the required content to be covered by the ssl to be secured (https). The reason why your visitors are seing this is because there is a one of more items that are included in the page that is not secured ( https ). It could be a picture image, or a file that you are linking to thats not secured.

How to resolve this.

If you are a user and want to get rid of the popup window,
you always get, you can follow the steps in this tutorial: CLICK HERE TO SEE TUTORIAL

But if you are a webmaster, you need to troubleshoot your desing code (html, php, etc..). Check these items:

1. Load the page that is giving the error, and look at the code. these are the most common reason why you may be getting the popup:

a. A link to an image where the images is not secured. To fix this, make sure use https protocol:

Example: In my code i found this:
     Code:
<img src="http://www.mydomain.com/imagefile.jpg">

You need to change it to:
     Code:
<img src="https://www.mydomain.com/imagefile.jpg">


b. Another way to cause an error is to link to a style sheet with the link tag:
     Code:
]<link href="http://www.mydomain.com/style.css" rel="stylesheet" type="text/css" />
Is this example, just make sure you change the protocol from http to https

c. Linking to style sheets that have image properties can also create this error. For examplke, if i am linking to my style sheet with https, but one of the properties in one of my style sheet declarations has an image, make sure its using the https protocol: for example, when i open my style.css, once of my styles is this:
     Code:
body
{
background-color: #000000;
margin: 1px;
font-size: 10px;
font-family: Verdana;
color: #ABAFAB;
background-image: url(/images/backgrounds/dark.gif);
padding: 10px;
}

The above style will cause the nonsecure popup because my dark.gif image is not using the https protocol, so to make sure, i would change the style to look like this:
     Code:
body
{
background-color: #000000;
margin: 1px;
font-size: 10px;
font-family: Verdana;
color: #ABAFAB;
background-image: url(https://www.mydomain.com/images/backgrounds/dark.gif);
padding: 10px;
}


Now you get the idea. So make sure you are using https protocol on all your page content.

Hope this helps

Thanks to Webune Support for their contribution - webune.com
Mon Nov 27, 2006 2:37 am
2
mister_MR2
Reply #1460
Thanks,

That worked!!, I changed my css background image to https and now i am not seeing the error anymore. I will monitor for the next few days to see if any visitors report problems.
Wed Dec 13, 2006 7:31 am
3
mister_MR2
Reply #1461
I am trying to get rid of this same message ("This Page Contains both secure and non-secure items"). None of the described solutions work for me. I have a SSL web page (https) that displays image files from the local hard drive, of the format:

<img src="C:TestSample Jpegs640x480alaska.jpg" border="1" align="center" width="100" height="75">

How can I make this web page display without seeing the warning message?
Wed Dec 13, 2006 3:01 pm
4
mister_MR2
Reply #1462
all web pages on the internet run on a protocol called HTTP. From what I know, it started from the Unix world, However, looking at your<img> tag, you have the backlash ( ) character in your img tag, the is a primarly a windows path separator, unix on the other hand uses the forward slash ( / ) as a path separator. its the same as when you typ a url in your browser, you would type for example: http://www.wallpaperama.com NOT http:\www.wallpaperama.com. (go to the bottom of this post to see more information about this subject)

With that in mind, i would advise you to change your code:

Chang From This:

     Code:
<img src="C:TestSample Jpegs640x480alaska.jpg" border="1" align="center" width="100" height="75">


Change It To:


     Code:
<img src="/alaska.jpg" border="1" align="center" width="100" height="75">


* assuming that your file (example: index.html) is in the "Test" directory

* * * * * * * * * * more information on the subjet: * * * * * * * * * *
------------------------------------------------------------------------------------
DOS 2. When directories were introduced. Many of the functions
were based on unix, down to a NUL terminated filename and the
name "creat".

But DOS 1 was modelled on CP/M which used "/" as a command
line option flag. You couldn't use a "/" in the DOS shell because
it would be interpreted as the flag. You could change the flag using
a DOS command, eg, to use "-" instead, but that was disabled in
the 3.x days; for good reason.

Hence, the low-level DOS commands (since 2.0) would take
both / and as separators, but some codes did their own
filename munging and would not.
Tue Apr 10, 2007 3:39 pm
5
Charlie
Reply #1463
Hopefully I can revive this thread as I am too having the same problem of NEEDING to display an image from the LOCAL HARD DRIVE not my web server on a secured web page. How this is working is we are using a scanner that the website works with. They scan in an image, the image needs to display temporarily (it is NOT stored on our server) of what they just scanned.
I need to figure out a way to get rid of this warning.. please help!
Tue Apr 10, 2007 6:15 pm
6
bruce
Reply #1464
you probably need to check your code. I had the same problem with putting the relative path instead of the absolute path. The you can never go wrong with the absolute path.
Mon Apr 30, 2007 1:33 pm
7
Jose
Reply #1465
Important: other case is when you use an IFRAME an omit the SRC attribute. See the link below:

http://gemal.dk/blog/2005/01/27/iframe_without_src_attribute_on_https_in_internet_explorer/





Fri May 11, 2007 5:20 am
8
RON8O
Reply #1466
so this message ("this page contains both secure and non-secure items") is caused anytime there are relative links in a secured site?
Wed Aug 29, 2007 6:05 am
9
ram
Reply #1467
thanks it really helpfull for working in my project.

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload