https connection issue

GK User
Fri Mar 23, 2012 7:14 pm
hi,

When I run my site via ssl connection, the browser says ...

"The page at https://MYSITE.com ran insecure content from http://ajax.googleapis.com/ajax/libs/jq ... ery.min.js"

how can I solve this?
User avatar
Junior Boarder

GK User
Sat Mar 24, 2012 2:32 pm
Hi,

It's probably a problem from K2 because if I uninstall all K2's extensions the issue will be gone, so please contact K2 support to get this fixed better.
User avatar
Platinum Boarder

GK User
Sun Mar 25, 2012 1:59 am
Hi Don,

Thank you.
I will work with K2:)

Best
User avatar
Junior Boarder

GK User
Sun Mar 25, 2012 3:10 pm
If you get any solution from K2 please post it here then others could benefit as well.

Thanks,
User avatar
Platinum Boarder

GK User
Mon Mar 26, 2012 2:18 am
Hi Don,

I found the line "$document->addScript('http://ajax.googleapis.com/ajax/libs/jquery/..."

on "MY_Site/plugins/system/k2/k2.php"!

Thank you very much!!
User avatar
Junior Boarder

GK User
Mon Mar 26, 2012 2:21 pm
Thanks for sharing that. You can change the code to:
Code: Select all
$document->addScript('//ajax.googleapis.com/ajax/libs/jquery/...

removing http at beginning of the URL is a solution to help the site use the same protocol for the link, it means that when you disable SSL mode, it will use http for the link, otherwise it will use https.

Cheers,
User avatar
Platinum Boarder


cron