How to fix a mix of secure and insecure content?

How to fix a mix of secure and insecure content?

by Arturs Polis -
Number of replies: 3

Hi!

We recently bought and installed the SSL certificate. However, it looks like there’s a mix of secure and insecure content inside the site.
there are several ( 115 ) urls which might be partly created by some plugins.
Is there a central place where the protocol (https) is set and all plugins will follow?

Moodle version 2.9+

Average of ratings: -
In reply to Arturs Polis

Re: How to fix a mix of secure and insecure content?

by John Okely -

You can try the search and replace tool: admin/tool/replace/index.php. However it's very experimental, so make sure you back up your database before doing it.

In reply to John Okely

Re: How to fix a mix of secure and insecure content?

by Arturs Polis -

We have tried the Search and Replace tool, but unsuccessfully. 
Maybe it’s inside of SQL block elements, which are base64 coded => not simply text-search-/replaceable ….

Maybe there are theme-files  with absolute URLs … 
So, maybe the theme should be installed new …. really don’t know....

Any other hint?

In reply to Arturs Polis

Re: How to fix a mix of secure and insecure content?

by Luke Barone -
We have a very similar issue. We use HTTPS, but browsers are blocking mixed content by default. The mixed content comes from our content provider over HTTP as different `embed`s and `iframe`s. So, a simple search-and-replace won't fix it. The content provider is NOT accepting the responsibility of providing their services over HTTPS, and have told us to essentially suck it up. Short of reinstalling Moodle 3 in HTTP-only mode, is there any ways to get the embeds to filter through some sort of HTTPS before they hit the user's computer, so they show up?