Simple Machines Community Forum

General Community => Scripting Help => Topic started by: qf i Leno on April 16, 2018, 01:19:45 AM

Title: Mixed Content error blocking vital scripts?
Post by: qf i Leno on April 16, 2018, 01:19:45 AM
Hey!

So, I've got an issue which has somewhat stumped me.

My website has an SSL certif, it's not forcing HTTPS, but I am receiving Mixed content errors for certain scripts and files (Themes/default/scripts/topic.js for example).

I am aware that this is happening because the files are being requested over HTTP, which means the obvious fix is to change http to https in the link string... BUT, I can seem to find where the links are being requested from to actually fix them...

If I provide a list of the files that are being blocked, could someone kindly direct me to the location where they're being requested?


Thank you greatly
Title: Re: Mixed Content error blocking vital scripts?
Post by: qf i Leno on April 16, 2018, 01:27:48 AM
update:

It looks like 90% of the links that are being blocked are in the index.template.php file, but I am not sure what to actually add/change to load them over https, LOL.

The links look like this-

<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?fin20"></script>

I am assuming something like:

<script type="text/javascript" src="'https://sitelink.com',', $settings['default_theme_url'], '/scripts/script.js?fin20"></script>

would do the trick?

Or even forcing HTTPS in my Cpanel?
Title: Re: Mixed Content error blocking vital scripts?
Post by: qf i Leno on April 16, 2018, 02:35:05 AM
Fixed the issue!

for anyone else who is facing the same issue, simply use repair settings & edit the links.

:)