News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Mixed Content error blocking vital scripts?

Started by qf i Leno, April 16, 2018, 01:19:45 AM

Previous topic - Next topic

qf i Leno

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

qf i Leno

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?

qf i Leno

Fixed the issue!

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

:)

Advertisement: