WordPress HTTPS (SSL)
[resolved] This Plugin Breaks Embedded Google Maps (2014) (12 posts)

  1. mountainguy2
    Posted 1 year ago #

    My embedded Google maps don't work with this plugin enabled. I tried a bunch of different settings, finally had to disable the plugin and go back to editing .htaccess and wp-config.php to get our SSL working the way we want. Probably better that way anyway, but at first I thought this was one-stop shopping to utilize our brand new SSL.


  2. mountainguy2
    Posted 1 year ago #

    I think I messed up with posting this in the wrong place. Trying again.

    After days of work trying alternatives, I had to go back to using WorPress HTTPS plugin because it does the two things we are after. 1. Forces website visitors to HTTP, 2.) Forces HTTPS for the admin. And while doing these things it doesn't break much.

    Only problem, it's STILL breaking embeded Google Maps. Instead of the map, blog post just gives error message:

    "The Google Maps API server rejected your request. Requests to this API must be over SSL."

    This seems like it must have an easy fix, it must have to do with the plugin forcing http on the visitor side.

    If anyone can give me a clue of where I might fix this, I'd sure appreciate.

    Thanks, MTN (WordPress 3.9.1, using the new Google Maps)

  3. mountainguy2
    Posted 1 year ago #

    Am thinking I should probably move on to using Open Street Map. Google Maps seem to have become difficult.

    Even so, we have hundreds of embedded Google maps on our blog that are broken if WordPress HTTPS is activated. We don't have the resources to go back and edit every one of them for conversion to Open Street Map, so I'll keep searching for a solution so the Google Maps work. My suspicion is that the fix is easy, but mysterious.

    Thanks, MTN

  4. mountainguy2
    Posted 1 year ago #

    Well, this is just crazy, I didn't do anything I can put a finger on, and suddenly all our Google embedded maps are displaying correctly again -- with WordPress HTTPS plugin activated.

    In any case, something to keep an eye on for those of you who used embeded Google maps on your blogs.

    I'll mark this as resolved.

    Thanks anyone who looked at these messages.


  5. loosefast
    Posted 12 months ago #

    I noticed today that IF this Plugin is installed, and you embed a Google map on a page, it will show the "The Google Maps API server rejected your request. Requests to this API must be over SSL." if you do not have the SSL protection checked for the page.

  6. bigneno
    Posted 11 months ago #

    This plugin replaces https sources (src) with non-https.

    Here's my working solution via jquery:

       $('iframe#map').attr("src", $('iframe#map').attr('src').replace("http:","https:") );
  7. zonetrap
    Posted 11 months ago #


    How did you get it working? You add the script in header.php?

  8. bigneno
    Posted 10 months ago #

    You can paste it into header.php or into specific post's text editor.

    Make sure you have jquery library enabled. Change #map to #YourIframeID.

  9. zonetrap
    Posted 10 months ago #

    You mind giving me an example of the #iframeid of a google map?

    <iframe src="https://www.google.com/maps/embed?pb=!1m16!1m12!1m3!1d168783.32073634138!2d-113.88947300000001!3d48.624401!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!2m1!1sglacier+outdoor+center!5e0!3m2!1sen!2sus!4v1420634756641" width="600" height="450" frameborder="0" style="border:0"></iframe>

    What part of the iframe is the id code?

  10. bigneno
    Posted 10 months ago #

    iframe#myid means:

    <iframe id="myid" src...

  11. zonetrap
    Posted 10 months ago #

    Doesnt work for me, same error.

  12. Klaus69
    Posted 9 months ago #

    @bigneno: Nice one, works, thanks a lot!

    @zonetrap: I added at the top of the page, no problem at all. Sure your syntax is correct?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress HTTPS (SSL)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic