No Map in Frontend with SSL / https
-
Hey,
I just downloaded your plugin a fey days ago. I have been trying to implement this for 2 hours now. My site is running on SSL encryption. I searched the forum, but all I found was the tipp to replace “http://” in function pgmaps_load_maps_api() with “https://” or “//”. But booth did not work, here is my code:
function wpgmaps_load_maps_api() {
wp_enqueue_script(‘google-maps’ , ‘//maps.google.com/maps/api/js’ , false , ‘3’);
}I also tried this plugin on a http site. There the map works correctly.
The reason the map does not show is definitely the SSL encryption. That is what the console says:
“Mixed Content: The page at ‘https://www.Domain.com/hello/’ was loaded over HTTPS, but requested an insecure script ‘http://maps.google.com/maps/api/js?v=3.25&key=MYKEY’. This request has been blocked; the content must be served over HTTPS.”
I also treid Firefox. If I disable the the https encryption, I can see the map.
Waiting for your response. Don’t worry, unless other users, I am well aware that we are facing weekend 🙂
The topic ‘No Map in Frontend with SSL / https’ is closed to new replies.