Mixed Content cornerstone images

PRO 1.1.1 site:https://stonelandscapes.ca/

I really don’t want to host the site using SSL, I would prefer to use http://. But google has the site listed to https:// so users are hitting the site with mixed content errors. All the images serve fine with https:// except for the images put in using cornerstone and the header logo.

Why is cornerstone/PRO not detecting the protocol, has it hard coded http:// in the image source?

I may need to switch the site url to SSL until a solution is found.

I switched the site to SSL in general settings and there is still mixed content of images inserted using cornerstone. I will send my login information.

I added SSL secure content fixer plugin that is the only way I can get rid of mixed content errors. I don’t understand why your cornerstone and header builder would not detect the protocol and allow for both to work?

Hi there,

The Cornerstone uses the home_url function to determine the base URL of the website regardless of the protocol used.

So if you change the base URLs in Settings > General the links should work ok. But please consider that whenever an image is added to a text field in one of Cornerstone elements it is not possible to change it like any other Wordpress media and you will need to edit the page.

The use of plugins you mentioned helps as they traverse the whole database and change the links. You would encounter the same issue if you did not use the Cornerstone, changing the protocol of the URL is just like changing the website domain and you will need to take the same steps.

Thank you for your understanding.

my point is that I did have the settings to HTTP and any image I added using cornerstone is hardcoded to http:// when is should be an relative link like all the other so that whatever protocol is used the links work.

Hello There,

Thanks for writing in! Please keep in mind that as soon as you insert an image in the post/page content, the urls will be saved forever. Even if you change the settings from http to https, those images links saved in the post/page contents will never change. That would still be the same case with images added in Cornerstone. To resolve this issue, you will need to install a 3rd party plugin and do a search and replace for the entire database.

In your case, since you have Wp Migrate DB, please make use of the search and replace feature of this plugin. Simply search for http://stonelandscapes.ca/wp-content/uploads/ and replace it with https://stonelandscapes.ca/wp-content/uploads/.

Hope this helps. Please let us know how it goes.

Thank you for all the information. I guess I didn’t expect that wordpress/cornerstone would store the full URL including the protocol. I assumed it would only store the relative url so they regardless of what protocol the user hits the site on it will use that one. Regardless of the wordpress url setting.

Hi there,

No unfortunately the whole URL is saved in contents of the Wordpress.

If you use the method my colleague mentioned you will have no problem converting all the links in the database.

Thank you.