Googles Maps Not showing when page is served over HTTPS

Permalink
Hello,

I have a situation where Google maps, Flickr feeds do not show up when the page is served over HTTPS protocol. However, if the same page is served over HTTP protocol, the Google map/flickr feed show up. Fot Google maps at least, I was able to find all controller files in BLOCKS and change all HTTP to HTTPS. Still, the map does not show up.

http://soc.medicine.iu.edu/about-us/...
https://soc.medicine.iu.edu/about-us/...
I am fairly new to Concrete 5. Please offer suggestions to resolve the issue.

Akbar

aehsan
 
mkly replied on at Permalink Reply
mkly
The version of concrete5 you are using is adding the Google Map with http:// instead of just //

So you are getting
Mixed Content: The page at 'https://soc.medicine.iu.edu/about-us/' was loaded over HTTPS, but requested an insecure script 'http://maps.google.com/maps/api/js?sensor=true'. This request has been blocked; the content must be served over HTTPS.


You need to patch the block. In your version it is probably
/concrete/blocks/google_map/controller.php


Look for thehttp://maps.google.... and change it to just //maps.google...

You might want to look into how to properly do an override in concrete5, but since I'm doubting you are going to be upgrading the site anymore, you might as well just patch it.
aehsan replied on at Permalink Reply
aehsan
Hello,

Thanks for your response. I had change http to https in /concrete/blocks/google_map/controller.php. However, I am not sure why it still shows up as http. I had also cleared both server and site cache.

I can change it to // as you recommend. But I am not sure why my changes do not show up.

Akbar
mnakalay replied on at Permalink Reply
mnakalay
Did you fix the problem? I can see the map on both your http and https pages so seems fine to me
aehsan replied on at Permalink Reply
aehsan
Yes. Thank you.