• Resolved bigflannel

    (@bigflannel)


    Hi

    My map recently stopped displaying. I assumed it was a Google Maps API thing. I added a key and the address seems good but I don’t get a map, no PHP error, no console error. I am stumped.

    This is my shortcode:

    [pw_map address=”1123 Broadway, New York, NY 10010, USA” key=”removed”]

    My key appears to be valid, as does my address, billing is attached, the Geocoding API is enabled. I do see errors in the Geocoding API which seem to relate to hitting the page I am having problems with. I am finding it really hard to find any information within the Google Cloud Platform as to what those errors are.

    Any help greatly appreciated.

    Regards
    Mike

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi, sorry to hear you’re having problems.

    Please try writing the address a bit differently. Even something like this will help:
    1123 Broadway Suite 313, New York, New York 10010, USA

    And see if it changes things.

    Thread Starter bigflannel

    (@bigflannel)

    Hi

    Thank you. I appreciate you getting back to me.

    I tried 1123 Broadway Suite 313, New York, New York 10010, USA and 1123 Broadway, New York, New York 10010, USA … neither worked.

    Is there any way to test what’s happening, areas to look for error logging, that you can suggest? Do you know how to see what the errors being report in the Maps API are? Google Cloud Platform is completely bewildering, I just want a map.

    Thanks for your help.

    Regards
    Mike

    You’re welcome, Mike.

    Since I don’t see any trace of our map on your site, it means it’s exiting early, and that can only happen when there’s something wrong with the address or geocoding. I’m not aware of any place in the Cloud Platform (which, yes, leaves a lot to be desired :() where you can see a detailed error log. However, details about the error can be pulled from the plugin/code. Please email [email protected] and refer to this thread along with your site details and our devs will have a look. Not much more we can do from “outside.”

    I’m having the exact same problem on the https://www.methadone.us website. Maps used to display, now just a blank space where it used to be. All the Google API’s appear to be enabled, and I updated to the latest version of the Simple Google Maps Shortcode plugin. A map should be appearing on this page in the upper right where it says Aiken Treatment Center:
    https://www.methadone.us/aiken-methadone-clinics/

    Thanks in advance for any help. So frustrating when it was previously working fine.

    Hi, try writing the address a little bit differently so that the cache lets go. And also check your API console to see if it registers any errors.

    There were zero errors in the console. Changing the address didn’t work either. In fact, the map is absent in all browsers Chrome, IE, and Firefox.

    I have the map on several hundred pages, each with a different address.

    Is the API key limited to a certain domain?

    Thread Starter bigflannel

    (@bigflannel)

    I should have updated this post. My apologies.

    WebFactory worked with me by email and we worked it out was a restriction on my API key within the Google Cloud Console. You can amend, add, remove etc. restrictions (by domain or other means) in:

    https://console.cloud.google.com/apis/credentials

    Or when you have navigated into the console go to APIs overview, then click on credentials on the left which should list your keys on the right. You can edit them and see what restrictions apply if any.

    I couldn’t work out what key was what … so I created a new key for the domain I was working on and restricted it to that domain.

    Hope this helps and thanks WebFactory.

    Regards
    Mike

    Thank you, Mike!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘No Output’ is closed to new replies.