Site design breaks down under HTTPS: but not HTTP:

Post

Posted
Rating:
#8130 (In Topic #2055)
My Website has current SSL certificate but when I try to access the site using HTTPS: the Composr website design breaks down. When I do the same using HTTP: the site design remains as it should.

Any suggestiions as to what might be the reason for this?

Website unbroken.jpg


Website Broken.jpg  

Post

Posted
Rating:
#8131
The default theme works >

Welcome to Ask in Prayer

website about prayer, praying and the God who answers prayers

View


Maybe you've edited your current theme and hardcoded a http link somewhere?

Post

Posted
Rating:
#8134
Usually this is a result of "mixed content".

Some CSS / JavaScript is attempting to be loaded over HTTP, and your web browser is blocking it for security because you loaded the site over HTTPS.

As Adam mentioned, you might have hard-coded HTTP links in your themes. Try fixing those and then clearing the cache (both Composr and web browser) and see where that gets you.

Post

Posted
Rating:
#8138
Thanks Adam and Patrick!

One of the things I have determined not to do is to change any of the Templates or CSS as it comes from Composer. I used the theme wizard provided by this software alone to create the theme. To me it seemed when upgrades come it will be easier on the themes I use to not have to redo anything more than I have to. Thats my approach strictly from a unititarian standpoint and not an ultimate design perspective. So as (slightly) limiting as that may be, it was how I created this theme.

Having said that I am wondering (having skimmed through my site) where any HTTP: or HTTPS: reference might be? I saw in the Point Store there are 3 places that had HTTP:// in them. (These are - E-mail forwarding maintenance URL   POP3 maintenance URL   POP3 quota maintenance URL ) Not sure any of these would make the crash scenerio happen but I dont know. I changes them to HTTPS:// and checked out the site - no difference.

Beyond that, I can not clearly remember, but wonder, if in the original site setup there might be any places that would call for a HTTP:// vs HTTPS:// designation?

Post

Posted
Rating:
#8139
hello,

There are several. But it's hard to pinpoint without getting more information.

When you load the broken HTTPS site, can you right-click and open developer tools / inspect element? Then go in the console and let me know any errors you get, potentially regarding URLs getting blocked from loading.

Post

Posted
Rating:
#8140
WOW! I guess there are a lot?

mixed active content 1.jpg

mixed active content 2.jpg

Pardon my ignorance but does this give some clue as to what is the cause?

Thanks for your help.

Post

Posted
Rating:
#8142
Yeah just as I suspected, it's trying to load all the CSS assets over HTTP.

Try clearing your template cache first and see if that does any good (Admin Zone > Tools > Website Cleanup Tools). Also double-check your base URL. If the base URL has HTTP in it, that will cause Composr to do that. Ideally now that you have HTTPS, you should force everything to run on HTTPS, which also means changing your base URL in _config.php to start with HTTPS.

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by PDStig)
#8143
I went into the Installation options and checked over the configuraion - sure enough when I originally installed Composr CMS I set the base URL as HTTP: - so I changed it to HTTPS: and voila! The website does not load broken anymore.

Thank you.

I had thought in the begining there was a place for the base URL to be entered, but I didnt know exactly where to find it... and I was hesitant to get into that part that required the master password.

Thanks again for the help!

Post

Posted
Rating:
#8144
Awesome to hear!
2 guests and 0 members have recently viewed this.