www.webdeveloper.com
Results 1 to 10 of 10

Thread: [RESOLVED] "This page contains both secure and nonsecure items" error in IE

  1. #1
    Join Date
    Mar 2009
    Posts
    5

    resolved [RESOLVED] "This page contains both secure and nonsecure items" error in IE

    Hello good people—

    I recently added an ssl cert to my site. If I visit an https:// page, I get the following error when using internet explorer:

    “This page contains both secure and nonsecure items.”

    “Do you want to display the nonsecure items?


    I don’t really know what I’m doing or how I might be able to fix it. If anyone could point me in the right direction, I would really appreciate it.

    Great forum by the way.

    Thanks

    Joe

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    The page contains links to files or images that are not in the secure folder.
    They begin with http:// and not https://

  3. #3
    Join Date
    Mar 2009
    Posts
    5
    Thanks for the reply. I tried it with in a blank page with no files or images and get the same result. Could it be the links in the footer or along the top?


    Thanks

  4. #4
    Join Date
    Jun 2004
    Posts
    316
    Quote Originally Posted by sawa0018 View Post
    Thanks for the reply. I tried it with in a blank page with no files or images and get the same result. Could it be the links in the footer or along the top?


    Thanks
    that could very well be possible. could you post the source-code of the blank page as internet explorer sees it?
    also, is it possible for you to change the code in the footer/top of the page for the secure part of the site only?
    Last edited by TheTeenScripter; 03-04-2009 at 08:51 PM.

  5. #5
    Join Date
    Mar 2009
    Posts
    5
    Thanks for the reply.

    I’m sure it’s possible to change the code in the footer/top of the page for the secure part of the site only, but I really don’t have any idea how to do it.

    In any event, here’s the code. If you could, please let me know if anything jumps out at you.

    Thanks

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
    
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    
    <title>CREfirms.com   &raquo; blank test</title>
    
    <link rel="stylesheet" href="https://crefirms.com/wp-content/themes/fluid-blue/style.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="https://crefirms.com/wp-content/themes/fluid-blue/print.css" type="text/css" media="print" />
    <link rel="alternate" type="application/rss+xml" title="CREfirms.com RSS Feed" href="http://crefirms.com/feed/" />
    <link rel="pingback" href="http://crefirms.com/xmlrpc.php" />
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://crefirms.com/xmlrpc.php?rsd" />
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://crefirms.com/wp-includes/wlwmanifest.xml" /> 
    	<!-- SuperSlider Base plugin available at http://wp-superslider.com/ -->
    	<script src="http://crefirms.com/wp-content/plugins/superslider/js/mootools-1.2.1-core-yc.js" type="text/javascript"></script> 
    	<script src="http://crefirms.com/wp-content/plugins/superslider/js/mootools-1.2-more.js" type="text/javascript"></script> 
    <meta name="generator" content="WordPress 2.6.5" />
    
    </head>
    
    <body>
    <div id="page">
    <div id="header">
    
    
    
    
    
    
    
    
    
    
    
    
    
    	
    <div id="headertitle">
    		<h1><a "href=http://crefirms.com title="CREfirms.com: Commercial Real Estate Firms Database">CREfirms.com</a></h1>
    		<p>Commercial Real Estate Firms Database</p>
    	</div> 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    	<!-- Search box (If you prefer having search form as a sidebar widget, remove this block) -->
    	<div class="search">
    			</div> 
    	<!-- Search ends here-->
    		
    </div>
    
    <div id="navbar">
    <ul id="nav">
    	<li><a href="http://crefirms.com">Home</a></li>
    	<li class="page_item page-item-1360 current_page_item"><a href="http://crefirms.com/blank-test/" title="blank test">blank test</a></li>
    <li class="page_item page-item-696"><a href="http://crefirms.com/tour/" title="Tour">Tour</a>
    <ul>
    	<li class="page_item page-item-568"><a href="http://crefirms.com/tour/executive-contacts-tour/" title="Executive Contacts Tour">Executive Contacts Tour</a></li>
    </ul>
    </li>
    <li class="page_item page-item-29"><a href="http://crefirms.com/free-trial/" title="Free Trial">Free Trial</a></li>
    <li class="page_item page-item-669"><a href="http://crefirms.com/contact-us/" title="Contact Us">Contact Us</a></li>
    <li class="page_item page-item-662"><a href="http://crefirms.com/retrieve-password-2/" title="Retrieve Password">Retrieve Password</a></li>
    <li class="page_item page-item-1089"><a href="http://crefirms.com/members-home/" title=""></a></li>
    <li class="page_item page-item-196"><a href="http://crefirms.com/seach-firms1/" title=""></a></li>
    <li class="page_item page-item-55"><a href="http://crefirms.com" title=""></a></li>
    <li class="page_item page-item-969"><a href="http://crefirms.com/new-sign-up-landing-page/" title=""></a></li>
    <li class="page_item page-item-207"><a href="http://crefirms.com/search-executive-contacts/" title=""></a></li>
    <li class="page_item page-item-457"><a href="http://crefirms.com/member-faqs/" title=""></a></li>
    <li class="page_item page-item-48"><a href="http://crefirms.com/site-map/" title=""></a></li>
    <li class="page_item page-item-236"><a href="http://crefirms.com/commercial-real-estate-investment-firm-database/" title="landing page">landing page</a></li>
    <li class="page_item page-item-89"><a href="http://crefirms.com/account-information/" title=""></a></li>
    <li class="page_item page-item-36"><a href="http://crefirms.com/terms-and-conditions-2/" title=""></a></li>
    <li class="page_item page-item-20"><a href="http://crefirms.com/privacy-policy/" title=""></a></li>
    <li class="page_item page-item-2"><a href="http://crefirms.com/about/" title=""></a></li>
    <li class="page_item page-item-230"><a href="http://crefirms.com/members_home/" title=""></a></li>
    </ul>
    </div>
    <div id="wrapper">
    
    	<div id="content">
    
    				<div class="post" id="post-1360">
    			
    
    
    
    			<div class="postentry">
    				<br />
    							</div>
    	
    			<div class="postmetadata">
    				<div class="postmetadata">
    																			 </div>
    			</div>
    		</div>
    
    
    		
    <!-- You can start editing here. -->
    
    <div id="comments">
    
    			<!-- If comments are closed. -->
    
    	
    </div>
    
    
    		
    	</div>
    
    
    </div> <!-- wrapper -->
    <div id="footer">
    	
    <html>
    <body>
    
    <html>
    <body>
    
    <p>
     
    <a href="http://crefirms.com/?page_id=36">
    Terms and Conditions</a> 
    
    &nbsp &nbsp &nbsp &nbsp
    
    <a href="http://crefirms.com/?page_id=20">
    Privacy Policy</a> 
    
    &nbsp &nbsp &nbsp &nbsp
    
    
    <a href="http://crefirms.com/?page_id=2">
    About Us</a> 
    
    &nbsp &nbsp &nbsp &nbsp
    
    <a href="http://crefirms.com/member-faqs/">
    FAQs</a> 
    
    
    &nbsp &nbsp &nbsp &nbsp
    
    <a href="http://crefirms.com/?page_id=48">
    Site Map</a>
    </p>
    2009 CREfirms.com All Rights Reserved
    
    
    
    </body>
    </html>
    
    
    
    </body>
    </html>
    
    
    </div>
    </div> <!-- page -->
    </body>
    </html>

  6. #6
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Your mootool scripts are not secure.
    Code:
    <html>
    <body>
    
    <html>
    <body>
    what's gone wrong here

  7. #7
    Join Date
    Mar 2009
    Posts
    5
    Thanks a lot for taking a look.

    Do you know of a resource that might explain how to secure mootool scripts?

    As far as the

    Code:
    </body>
    </html>
    
    
    
    </body>
    </html>
    I clearly don’t know what I am doing.

  8. #8
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Copy the mootools scripts to a secure folder.
    No scripts, objects, images or other documents may be included in the main document from outside the secure folder https

  9. #9
    Join Date
    Mar 2009
    Posts
    5
    Thanks so much for all your help you guys. I got it figured out. Really a great service you provide here.

  10. #10
    Join Date
    Mar 2009
    Posts
    1
    Hi all,

    I wanted to share my solution with all of you. The suggested reasons for the warning can be found on number of websites. I can give you exclusive reasons that no one gave anywhere on the net.

    1) Check if you are using <iframe> tag
    2) If possible then remove
    3) If it is absolutely necessary then check that it should have valid src attribute pointing to secure links (https://www.ringoring.com/b.html etc).

    If you have iframe and you do not provide the src then I.E will give the warning. again if the src is there but you did not mention https:// then it will also complain. so the solution is to put absolute path to src property of the <iframe>

    To achieve some ajax type results i needed to use Iframes, and I have encountered the same problem and step by step I get to this point. Yes the other stuff you guys provided will also do if you have normal http:// mentioned in a https:// link

    I hope this will be great help for someone!!!

    Ravi

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles