• Hi

    I just setup GMWP on a site. Things work according to the test, but when editing a post, map does not show at bottom. When adding an address, I get ooops, Maps do not load correct.

    Any ideas?

    Thx

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    Hi @hebhansen,

    The error you described usually related to your Google Maps Browser API key.

    The first thing you should verify is that you authorized the correct URL. See step 8 of this tutorial to make sure you entered the URL correctly ( https://exmple.com/* ).

    Another thing to check is that you enabled all the required API services. See steps 13 – 19 of the same tutorial to make sure you have all the API services ( listed in step 14 ) enabled.

    Let me know how it goes.

    Thread Starter hebhansen

    (@hebhansen)

    Hi @ninjew

    I have cleared my site in the browser auth like so: *.mysite.com/*
    And now I also added https://mysite.com/*

    I have checked spelling and it is correct

    Browser API unrestricted? (No APIs selected)

    Server:

    I do not see directions api in the repository. It appears it no longer exists. What is the alternative?Navigation SDK?

    Also Distance Matrix is no longer there? So what replaces?

    Places now has a new one. Can i select this?

    I have Street View Publish and Street View Static. Which one?

    Thread Starter hebhansen

    (@hebhansen)

    Fixes and changes… now I am getting a fail for the server test like so:

    	Array
    (
    [error] => REQUEST_DENIED - This IP, site or mobile application is not authorized to use this API key. Request received from IP address 2a01:4f8:271:2a11::2, with empty referer
    [data] => stdClass Object
    (
    [error_message] => This IP, site or mobile application is not authorized to use this API key. Request received from IP address 2a01:4f8:271:2a11::2, with empty referer
    [results] => Array
    (
    )

    [status] => REQUEST_DENIED
    )

    )

    Thread Starter hebhansen

    (@hebhansen)

    I don’t get it! When setting no restrictions both keys both site/ip and no restriction API the map still does not show.

    When testing server in tools, I have success only when no restrictions are set for server. I have added server ip4. I suspect that server ip6 may fix things. I just don’t know where to find it. I will APIs unrestricted until I know things are getting through.

    Update I located the IP6 I have for another site working. It’s now added. I have verified both keys. I have unrestricted server api. I have succes when testing. Map does not show.

    Spelling for example.com is correct

    Plugin Author Eyal Fitoussi

    (@ninjew)

    Hi @hebhansen,

    Google has replaced several API services, including the Places API (Legacy) with Places API (New) and Directions API (Legacy), which is now part of the Routes API. I recently became aware that the legacy APIs are no longer listed in the API library in Google Console, and the new APIs do not integrate directly with the core functions of the legacy APIs.

    While I work on updating my plugins to support the new API services, you will need to manually activate the legacy directions API service on this page and the legacy Places API on this page. Also sure you also have the Maps JavaScript API service enabled as well.

    Regarding your Server API key, you need to restrict it to the IP address mentioned in the error message that was returned when you tested it.

    BTW, if you are using only using GEO my WP plugin ( or any of its extensions ), you don’t need the Directions API service.

    If this doesn’t help resolving the issue, could you please open a support ticket on this page ( select the Other option ) where I could better assist you?

    Let me know how it goes.

    Thread Starter hebhansen

    (@hebhansen)

    Hi again @ninjew

    Your support needs a lisence, which I do not have.

    Server has it’s IPv6 as restriction set and test succeeds. Browser is restricted to my site like so *.mysite.com/* and like so *mysite.com/*

    Regarding APIs

    I have unrestricted APIs for now for both server and browser to at least see it working. Still Map does not show in editor. Entering an address does autofill, so it may partially work, but map is not showing.

    I have TT5 theme, latest WordPress This is a multisite install, where this is site #5.

    So please advise how to proceed?

    Do you have a status for plugin update of the new APIs?

    Plugin Author Eyal Fitoussi

    (@ninjew)

    HI @hebhansen,

    If the autofill is working, then it’s unlikely the issue is related to your Google Maps API key, unless the required Maps API wasn’t enabled in your Google Cloud Console.

    Do you know how to check for JavaScript errors in your browser’s console? That could help pinpoint the issue. If you see any errors, feel free to share them with me.

    Your support needs a license, which I do not have.

    And you don’t need a license key when selecting “Other” from the “What can we help you with” select box.

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

The topic ‘Map not showing in post edit’ is closed to new replies.