This page contains both secure and nonsecure items

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/29/2007 5:32:50 PM
Gravatar
Total Posts 80

This page contains both secure and nonsecure items

IE will display the error: "This page contains both secure and nonsecure items" on some pages.

I think that replacing all links with "http://...." to "https://..." will fix this error. The SiteLogo has this problem and possibly other links. Perhaps replace all SiteSettings.SiteRoot calls with WebUtils.GetSiteRoot()?

-Jesse
1/29/2007 5:34:07 PM
Gravatar
Total Posts 80

Re: This page contains both secure and nonsecure items

Also, for instances such as the SiteLogo and SiteTitle why are hard links used over relative links?

-Jesse
1/29/2007 5:58:04 PM
Gravatar
Total Posts 18439

Re: This page contains both secure and nonsecure items

That error only occurs with images or javascript, anything that has src= and points to http instead of https when the page is in https will cause that error.

Its definitely not SiteTitle causing that error because you can have anchor tags with href=http in a secure page without getting that error.

I'd need more evidence to believe it is SiteLogo control causing that error since it is only the link that uses siteSettings.SiteRoot and as I said its ok for links. The image in SiteLogo uses Page.ResolveUrl which resolves relative urls even on secure pages.

I don't get any of those errors in IE on this site when I visit secure pages like Login and User Profile and the link in SiteLogo is using http and the image is using a relative Url.

I think there is some other image or something in your page with src=http

Joe
1/29/2007 6:02:15 PM
Gravatar
Total Posts 18439

Re: This page contains both secure and nonsecure items

Actually I take it back I do get that in IE on the user profile page but I'm sure its the google ad script causing it.

I need to implement something to fix that issue with the google script but its not a mojoPortal issue as far as I can tell.

Thanks,

Joe
1/29/2007 6:55:50 PM
Gravatar
Total Posts 18439

Re: This page contains both secure and nonsecure items

I just fixed this in mojoPortal.com, I found there is one other situation that causes that error besides src=http, the other issue is if you use @Import for a css file link with http and this was happening in the HelpLinkButton control in the User Profile page, it was adding a stylesheet using http.

I fixed it to use Page.ResolveUrl and will commit to svn shortly.

Thanks,

Joe
1/30/2007 4:30:33 PM
Gravatar
Total Posts 80

Re: This page contains both secure and nonsecure items

The edit icon http://localhost/mojodev/Data/SiteImages/edit.gif next the user names in the Site Statistics module should be https:// for SSL.
You must sign in to post in the forums. This thread is closed to new posts.