[solved] Can anybody catch my non-ssl loading file?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
kendo451

[solved] Can anybody catch my non-ssl loading file?

Post by kendo451 »

I'm using the https feature in the new CMSMS version on the following page, as well as using cms_stylesheet with [[root_url]] tags in all the image links.

I'm failing the secure SSL connection because something on the page is loading from an http: url instead of https.  The problem is, I can't find it.  (When I hit CTRL-U it renders in non-secure mode for some reason.)

To see what I'm talking about, go here, add a product to the cart and click Checkout.

http://vasesrus.com/products.htm

The billing page is this (which you can't see unless you have something in your cart):
https://vasesrus.com/billing.htm

I've noticed that the main css file link is the same in secure and non-secure pages of the site.  This makes me wonder if the cached css page is correctly setting the https as the root url.

Any ideas?
Attachments
insecure_page.png
Last edited by kendo451 on Mon Oct 25, 2010 3:36 pm, edited 1 time in total.
NaN

Re: Can anybody catch my non-ssl loading file?

Post by NaN »

It is in your stylesheets.
There "http://" for background images is used even if in SSL mode.
If you disable stylesheets in your browser and reload the page everything is fine.
kendo451

Re: Can anybody catch my non-ssl loading file?

Post by kendo451 »

Interesting.

This means that the {cms_stylesheet} doesn't do the trick for SSL, because it isn't regenerating the stylesheet with [[root_url]] if the browser loads the stylesheet in http followed by https.
kendo451

Re: Can anybody catch my non-ssl loading file?

Post by kendo451 »

I solved the problem by removing [[root_url]] from the stylesheets and just using URL paths relative to the root URL.

url(/uploads/images/foo.jpg);

Works fine in http and https.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [solved] Can anybody catch my non-ssl loading file?

Post by Dr.CSS »

Including IE browsers?...
kendo451

Re: [solved] Can anybody catch my non-ssl loading file?

Post by kendo451 »

It works in IE7 & IE8, but not in IE6
Locked

Return to “CMSMS Core”