• Resolved justanotherhappywpuser

    (@justanotherhappywpuser)


    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 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there

    Thank you for getting in touch with us!

    My apologies for the inconvenience caused by this. Please go to wp-google-maps/wp-google-maps.php and scroll down to line 1090 where you’ll find a line of code that looks like this:

    wp_enqueue_script('wpgmza_api_call', '//maps.google'.$wpgmza_suffix.'/maps/api/js?'.$api_version_string.'key='.$wpgmza_api_key.'&language='.$wpgmza_locale, array(), null );

    Please add ‘https:’ into the URL and let me know if this helps?

    Thread Starter justanotherhappywpuser

    (@justanotherhappywpuser)

    Thanks for the fast support. Everything is fine now 🙂

    Hi there

    Only a pleasure! So glad to hear everything is now working as expected 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘No Map in Frontend with SSL / https’ is closed to new replies.