Link to home
Start Free TrialLog in
Avatar of papakota kot
papakota kot

asked on

Mixed Content error - how to get rid of it?

Hello!
I have this Mixed Content error in some browsers. Like index.php calls for css:style.css file which is over HTTP. I found that my template in a file template.config.php has such a line in a load CSS section:

 
$this['asset']->addFile('css', 'css:style.css');

Open in new window


URL of the site is: apostasia.ru
Avatar of David Favor
David Favor
Flag of United States of America image

Doing a search + replace on all your .php files + database rows, replacing http://apostasia.ru with https://apostasia.ru will likely fix this problem.
https://www.webpagetest.org/result/190727_K2_73f74c17f7565868a0f582e6b81d929c/1/details/#waterfall_view_step1 shows all assets are being served via HTTPS, so looks like you've fixed the problem.

Be sure add a comment about how you fixed the problem to assist other Joomla site owners in the future.
Avatar of papakota kot
papakota kot

ASKER

David Favor,
Thanks for your reply!
I'm surprised that you're saying that I've done something whereas I haven't :-) Honestly I haven't done anything. I mean, I don't think I ever had a problem of something being served NOT over HTTPS. Everything IS served over HTTPS. BUT... my Joomla template tries to call some mysterious CSS file (which I think doesn't even exist in reality) and THAT causes a "Mixed Content" warning in some browsers. Let me rephrase that... It's not that there's anything being served over HTTP. But it's just the attempt to get to some CSS file that supposedly wouldn't be served over HTTPS.
When I visit your site I get no mixed content warning.

Maybe this is a language dependent artifact.

https://apostasia.ru/en/ is actual URL I end up with, because my language ends up set to English.

Provide your full URL. Language specifier + all.
Note: I o occasionally see a websocket protocol specifier, which WebPageTest is showing as non-HTTPS.

wss://widget-mediator.zopim.com/s/W/ws/7pUNWOuN7SCN-Ixq/c/1564234638322

Open in new window


Unsure if this might be part of the problem.

Likely next step for you is to produce a screen shot or video showing the mixed content warning you're seeing.
That Zopim widget is just an external JS-based chat in my site's lower left corner. It belongs to ZenDesk now... I don't think it's part of the problem.
Best to provide some actual screen shot of video showing problem, as I see only pure HTTPS content when visiting your site.

So I get a lock (secure) icon, rather than the info (mixed content) icon.
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
OK, now the question is how to solve those two errors, but I will probably ask that separately in two different threads.