- This topic has 12 replies, 2 voices, and was last updated 3 years, 4 months ago by Tom.
January 6, 2018 at 5:17 am #464380Edin
I’ve migrated the theme from a test-site to a live site (which is on https).
Now I have the issue that the favicon is being loaded over http (therefore sabotaging my whole site https-wise):
Mixed Content: The page at 'https://mysite.com/' was loaded over HTTPS, but requested an insecure favicon 'http://mysite.com/wp-content/uploads/favicon.ico'. This content should also be served over HTTPS.
It worked before, so it has to be the theme.
I’ve re-uploaded all the images in the customizer after taking the theme live (also the “site icon”).
What can it be?GeneratePress 2.0.1January 6, 2018 at 12:05 pm #464676TomLead DeveloperLead Developer
The theme itself doesn’t have any code related to the favicon – WordPress itself adds the HTML for the favicon using the site icon option in the Customizer.
Perhaps you have the favicon HTML added in GP Hooks?January 6, 2018 at 12:23 pm #464686Edin
No, I haven’t, I’ve checked.
That’s weird, I didn’t have that problem with the old theme.
Tom, do you mind helping me out here, I’m a little desperate… having mixed content over the whole site is really not a good thing.
Thanks in advance!January 6, 2018 at 7:50 pm #464824TomLead DeveloperLead DeveloperJanuary 7, 2018 at 2:03 am #464918Edin
Tom, I’ve sent you an email with the site’s login credentials, maybe it’s easier that way to find the source.
I’ve spent the last three hours to find out what’s causing the issue, all to no avail.
Thank you so much in advance!January 7, 2018 at 9:05 am #465166TomLead DeveloperLead DeveloperJanuary 7, 2018 at 9:14 am #465175Edin
Thanks for taking a look Tom, but it’s still showing mixed content (and I’ve cleared the cache at least 20 times since yesterday).
If you open an incognito Chrome you see it. It’s also in the source code of the page…January 7, 2018 at 9:16 am #465178Edin
Also, if you use this https checker: https://www.jitbit.com/sslcheck/ you’ll see it on every page.January 7, 2018 at 9:26 am #465189TomLead DeveloperLead Developer
Strange, my browser is giving me a green https symbol now.
The favicon loading is an .ico, but the site icon you’ve uploaded in the Customizer is a .png.
I wonder where that .ico is coming from? Perhaps a plugin you have installed is adding it in?January 7, 2018 at 9:32 am #465192Edin
I have no idea. I went through the plugins I have, not sure which one it could be… The previous theme I’ve used (DIVI) had the option to add a favicon, maybe it’s that? But why would it suddenly load over http when I switch to GP?
I’ve tried to delete it, and re-upload the site icon in the customizer, but that also didn’t work.
Is there a way to find out WHAT is creating this insecure code?January 7, 2018 at 9:42 am #465198TomLead DeveloperLead Developer
Have you tried disabling your plugins one by one to see if one of them is causing it? You would have to disable your caching plugin first.
Something is adding the favicon.ico code to the header, you just need to disable things one by one until you find the culprit.January 7, 2018 at 9:57 am #465214Edin
Found it!!! It was OptimizePress.
Thank you so much, Tom, for your help!!! I really appreciate it!January 7, 2018 at 8:06 pm #465466
- You must be logged in to reply to this topic.