Title: My Customers Visitors Are Complaining of secure and nonsecure items popup
Description: my customers visitors are complaining of secure and nonsecure items popup General Errors
Tags: my, customers, visitors, are, complaining, of, secure, and, nonsecure, items, popup
Info: This Post Has Been Viewed 12097 Times SinceMon Nov 27, 2006 2:06 am Author mister_MR2 With 14 Replies #505

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
Comments (14)
View Top Comments
Leave Your Comments...
#1
mister_MR2:
5 years ago
#139
mister_MR2 Mon Nov 27, 2006 2:32 am
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
#2
dori:
5 years ago
#140
dori Mon Nov 27, 2006 2:37 am
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.
#3
BROKE:
4 years ago
#141
BROKE Wed Dec 13, 2006 7:31 am
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:



How can I make this web page display without seeing the warning message?
#4
mister_MR2:
4 years ago
#142
mister_MR2 Wed Dec 13, 2006 3:01 pm
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:\Test\Sample Jpegs\640x480\alaska.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.
#5
Charlie:
4 years ago
#1440
Charlie Tue Apr 10, 2007 3:39 pm
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!
#6
bruce:
4 years ago
#1444
bruce Tue Apr 10, 2007 6:15 pm
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.
#7
Jose:
4 years ago
#2074
Jose Mon Apr 30, 2007 1:33 pm
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/





#8
RON8O:
4 years ago
#2930
RON8O Fri May 11, 2007 5:20 am
so this message ("this page contains both secure and non-secure items") is caused anytime there are relative links in a secured site?
#9
ram:
4 years ago
#17899
ram Wed Aug 29, 2007 6:05 am
thanks it really helpfull for working in my project.
#10
Jesse:
3 years ago
#71896
Jesse Tue Sep 23, 2008 9:23 pm
very helpful! ... it was so nice to read all this and correct the problem!
#11
Jim:
3 years ago
#82945
Jim Mon Nov 24, 2008 11:16 am
i am having this same problem but have checked all my code and cannot get rid of this message. if anyone has the time, could you check the code on my site and see if i am missing something?

thanks in advance,

https://frcreditrep /partners/index.php
#12
Jim:
3 years ago
#82947
Jim Mon Nov 24, 2008 11:17 am
sorry web page didn't work..

frcreditrepair
dot
co
#13
Anna:
2 years ago
#102303
Anna Mon May 04, 2009 3:07 pm
i'm having the same trouble, only i think it's a little more complicated than putting the https:// in front of the images and so forth. could someone check out this page and let me know what else could be done? hothangups /thecollections.php

i think the problem is the product photos are not secured... but i am not sure how to secure them. they are pulled from a folder on the server through php code that uses references embeded into a regular page like so:

<?php include("/home/httpd/vhosts/hothan /httpdocs/oneadmin42/ecommerce/home ?>

and i'm not sure how to go about implementing the https:// to it.

please help!
#14
Ray:
1 year ago
#141349
Ray Sat Aug 07, 2010 7:28 pm
Hi ,
I have few you tube link on my page and I'm getting this massage "this page contains both secure and non-secure items")
How can I solve this issue?
Leave Your Comments...
Share
| More