Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    May 2005
    Posts
    139
    Plugin Contributions
    0

    Default SSL problem - this page contains both secure and nonsecure items

    I am having problems with a css/js drop down menu I have placed in the cart when it comes to https pages. I get the following message:

    this page contains both secure and nonsecure items

    Searching various forums on the web this seems to be a common problem, although I couldn't find an answer to fix my problem.

    Code:
    <script type="text/javascript" src="https://www.website.com.au/menu/menu.js"> </script>
    Now with this above line, if I remove it, I no longer get the message, but the the drop down part of the menu doesn't function. I had thought perhaps something in the js file was causing this issue, but after I deleted the entire contents of the js file and uploaded the blank file, the same problem still occured.

    Any ideas how to fix this?
    Kind Regards,
    Andrew

    $15 USD A Month Donor To Zen - Please Join The Other Donors

  2. #2
    Join Date
    Sep 2004
    Location
    MONTANA!!!
    Posts
    105
    Plugin Contributions
    0

    Default Re: SSL problem - this page contains both secure and nonsecure items

    Howdy Andrew,

    Usually, that error indicates that your are requesting an image etc. from a non-secure location. To be a bit more clear, from an http:// vs. https:// . In this case I see that https:// www dot websites dot com dot au is throwing an error. So, they probably don't have an SSL Certificate installed or it's installed incorrectly.

    If you have further questions on this, put a url up for your site. I can look deeper.

    Paul

  3. #3
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: SSL problem - this page contains both secure and nonsecure items

    Off topic,

    Whats with the .com.au? Does Austrailia have it's own hierarchy or something?

  4. #4
    Join Date
    May 2005
    Posts
    139
    Plugin Contributions
    0

    Default Re: SSL problem - this page contains both secure and nonsecure items

    Quote Originally Posted by birdoasis View Post
    Off topic,

    Whats with the .com.au? Does Austrailia have it's own hierarchy or something?
    sure does. most countries do I think if not all, even the US I believe has one now? (not positive on that though)
    Kind Regards,
    Andrew

    $15 USD A Month Donor To Zen - Please Join The Other Donors

  5. #5
    Join Date
    May 2005
    Posts
    139
    Plugin Contributions
    0

    Default Re: SSL problem - this page contains both secure and nonsecure items

    Quote Originally Posted by fourbit View Post
    Howdy Andrew,

    Usually, that error indicates that your are requesting an image etc. from a non-secure location.

    Paul
    Hey Paul.

    Thanks for your reply. That is what I had also initially thought. I really don't think that is the case here though as in my trouble shooting I took out any related images to the page. (all images go through the main stylesheet by the way) Even when the images are showing, but the reference to a js file is not, this message doesn't come up.

    http://hathor.instanthosting.com.au/~direc731/index.php (click on the login page and it will take you to a secure page)
    Kind Regards,
    Andrew

    $15 USD A Month Donor To Zen - Please Join The Other Donors

  6. #6
    Join Date
    Sep 2004
    Location
    MONTANA!!!
    Posts
    105
    Plugin Contributions
    0

    Default Re: SSL problem - this page contains both secure and nonsecure items

    Hi Andrew,

    I was a bit confusing. Sorry.

    What I was trying to say was that it appears that this domain www. website.com.au doesn't have an SSL cert installed or it's incorrectly installed so, your link to the https://www. website.com.au/menu/menu.js for the java script is causing the error.

    However, I looked at your site, and I see a different '<script 'code . And the src= in it is pointing to http://www. your-domain-name . Your problem is definitely there.

    It is possible to put a switch in there, or you can make it more dynamic in the header code. Or, you can just change it to https:// leave it at that.

    Paul

  7. #7
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: SSL problem - this page contains both secure and nonsecure items

    Change from:
    <script type="text/javascript" src="https://www.website.com.au/menu/menu.js"> </script>

    to:
    <script type="text/javascript" src="/menu/menu.js"> </script>

    The above uses a Relative link which should eliminate your problem. It also presumes the JS code is within your account. If not you should put it within your account.

  8. #8
    Join Date
    Sep 2004
    Location
    MONTANA!!!
    Posts
    105
    Plugin Contributions
    0

    Default Re: SSL problem - this page contains both secure and nonsecure items

    Very well put, Rob.

    I missed the 'relative' option. Sometimes I'm a bit in the mud.

    I pm'd him with the full urls. So, between those two options, he'll have it working.

  9. #9
    Join Date
    May 2005
    Posts
    139
    Plugin Contributions
    0

    Default Re: SSL problem - this page contains both secure and nonsecure items

    Quote Originally Posted by Website Rob View Post
    Change from:
    <script type="text/javascript" src="https://www.website.com.au/menu/menu.js"> </script>

    to:
    <script type="text/javascript" src="/menu/menu.js"> </script>

    The above uses a Relative link which should eliminate your problem. It also presumes the JS code is within your account. If not you should put it within your account.
    Hi Rob, thank you for that! I have used the relative link option and still face the same problem.

    What I did just find though is that there is an additional piece of javascript code at the in the page which helps control the menu which actually may be the cause.

    Code:
    <script type="text/javascript">
    
    cssdropdown.startchrome("menu")
    
    </script>
    I am fairly sure that the ssl certificate is working correctly, as previously I used another dhtml/js menu for this site and it worked fine with the ssl. I had to change it though as it was making the page extremely slow to load.
    Kind Regards,
    Andrew

    $15 USD A Month Donor To Zen - Please Join The Other Donors

  10. #10
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: SSL problem - this page contains both secure and nonsecure items

    Check the coding for the JS script and make sure the URL for 'src' is also using a Relative link. Also make sure there are no 'off-site' links as that will cause the same type error.

    Other than that, you would need someone to investigate further.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 7 May 2009, 09:06 AM
  2. HCL (Help Center Live) - Page contains both secure and nonsecure items
    By Ruthless in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 5 Mar 2009, 07:41 AM
  3. Replies: 3
    Last Post: 8 Oct 2008, 01:53 AM
  4. Help with "page contains both secure and nonsecure items"
    By bpais in forum General Questions
    Replies: 4
    Last Post: 21 Jan 2008, 03:32 AM
  5. This page contains both secure and nonsecure items
    By superprg in forum General Questions
    Replies: 21
    Last Post: 21 Mar 2007, 08:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR