MyBB Community Forums

Full Version: Unsecure scripts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, Recently I switched got a ssl certificate but I have a little problem. Chrome says my website is loading unsecure scripts. I know how this can be fixed, I just don't know where to fix it.
portal.php:11 Mixed Content: The page at 'https://www.wickedcubemc.com/portal.php' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic'. This request has been blocked; the content must be served over HTTPS.
portal.php:12 Mixed Content: The page at 'https://www.wickedcubemc.com/portal.php' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700'. This request has been blocked; the content must be served over HTTPS.
portal.php:14 Mixed Content: The page at 'https://www.wickedcubemc.com/portal.php' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,200italic,400italic,600italic'. This request has been blocked; the content must be served over HTTPS.
Thats the output from inspect element, the http bits to https. I just don't know where to change it. Does anyone know?
If it's a font, will most likely be in the headerinclude template in your theme.

When including assets, instead of using http:// or https:// specifically, it's easier to change it to just // as this will automatically use the same protocol as the site.
Looks like one of your CSS templates. I had this exact issue when switching my server to https. Make sure any links in your CSS templates are changed to https (they're http by default).

This is the path to where I had to change the links. Hopefully this will help:

Admin CP > Templates & Style > Templates > [Whatever theme you're using] > Ungrouped Templates (should be at bottom of page) > headerinclude

Then change any links starting with http to https, save, and refresh the page.
(2016-12-09, 03:42 AM)DisGuy Wrote: [ -> ]Looks like one of your CSS templates. I had this exact issue when switching my server to https. Make sure any links in your CSS templates are changed to https (they're http by default).

This is the path to where I had to change the links. Hopefully this will help:

Admin CP > Templates & Style > Templates > [Whatever theme you're using] > Ungrouped Templates (should be at bottom of page) > headerinclude

Then change any links starting with http to https, save, and refresh the page.

Worked thanks
(2016-12-09, 11:52 PM)PiggyPiglet Wrote: [ -> ]
(2016-12-09, 03:42 AM)DisGuy Wrote: [ -> ]Looks like one of your CSS templates. I had this exact issue when switching my server to https. Make sure any links in your CSS templates are changed to https (they're http by default).

This is the path to where I had to change the links. Hopefully this will help:

Admin CP > Templates & Style > Templates > [Whatever theme you're using] > Ungrouped Templates (should be at bottom of page) > headerinclude

Then change any links starting with http to https, save, and refresh the page.

Worked thanks

Glad to hear it worked! Big Grin