This topic is: not resolved

Google Maps stopped working

  • foml
    Participant
    Post count: 26
    # 2 months, 3 weeks ago

    Hi,
    I’m using the Gaea theme on my website at modestolibraryfriends.org.
    Events were all set up and working fine when I went live in May. I entered the required Google API and have not changed it. I used to see a Google map on each of my event pages. I’m not sure when this stopped working, but yesterday I noticed when editing an event page that the Google map is grayed out with a message running through it that says “For development purposes only.” An error message appears in a window: This page can’t load Google Maps correctly.

    In the same window I am asked if I am the owner of the website and can link to https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors. I became confused by this page and thought I’d ask you if there is a simpler solution in WP.

    Your team has been so helpful in the past; I hope you can help me again.
    Ellen

    foml
    Participant
    Post count: 26
    # 2 months, 3 weeks ago
    This reply has been marked as private.
    foml
    Participant
    Post count: 26
    # 2 months, 3 weeks ago
    This reply has been marked as private.
    AuthorAuthor
    Keymaster
    Post count: 26632
    # 2 months, 3 weeks ago

    Hi there

    Make sure you have enabled the API for your website as now Google need to have API keys to allow http websites to access the services https://support.imithemes.com/forums/topic/how-to-get-google-maps-api/#enable-apis

    Thanks

    AuthorAuthor
    Keymaster
    Post count: 26632
    # 2 months, 3 weeks ago

    Also I suggest you to enable Geocoding service for the API Key. Go to your Google project’s Dashboard for this API and click “Enable APIS and Services” https://d.pr/i/1yZmeO On the following page click “View All” https://d.pr/i/I85qi2 On the next page click “Geocoding” https://d.pr/i/AD8hN5 and click “Enable” on the following page. This should help in showing the maps correctly. Thanks

    foml
    Participant
    Post count: 26
    # 2 months, 1 week ago

    Hello again,
    Both the things you suggested (enable Javascript and Geocoding), were already done on my site (I can see the two APIs on my Google dashboard).

    I looked at Google Maps stats and can see that my latency is at the 98th percentile (slowest 2%) at 32 ms. I’m not sure what it measured at 1:15 pm today (17 minutes ago) and again at 1:33 pm but I guess I might have clicked the map in the WP editor each time.

    Have you any additional suggestions or have I reached the point where I need to contact Google?

    Ellen

    foml
    Participant
    Post count: 26
    # 2 months, 1 week ago
    This reply has been marked as private.
    AuthorAuthor
    Keymaster
    Post count: 26632
    # 2 months, 1 week ago

    I see error in your event page console that this website is not authorized to use this API Key. It seems like the problem is not with the key but the referrers which is set for the API. I would be able to assist further only if I can have your API access using the Google account else you can check it yourself https://developers.google.com/maps/documentation/javascript/get-api-key

    Thanks

    foml
    Participant
    Post count: 26
    # 2 months ago

    I am not sure where to find the error in my “event page console” that you mentioned. Can you tell me where to find that?

    I did do some research about referrers and at the link you provided, and looked closely at console.developers.google.com/apis/credentials so I could learn more myself.

    In the Google console, under Restrictions, I only had the GoogleMaps API activated. I added the Geocoding API and, instantly, my maps display on my website once again. I noticed, though, that in WP, on each “Edit Event” page, I still have a grayed out map labeled “for development purposes only” and a message that “This page can’t load Google maps correctly.”

    I tried one other thing I had read. In the Google console, under Application Restrictions, I added two URLs from which to accept requests. They were modestolibraryfriends.org/* and *.modestolibraryfriends.org/* This did not change anything. Website maps still display, Edit Event page maps do not.

    I guess I can live with my current situation, as the site DOES now display maps. I’m just curious why maps won’t load on my Edit Events pages in WP.

    Thanks for sticking with me 🙂
    Ellen

    AuthorAuthor
    Keymaster
    Post count: 26632
    # 2 months ago

    Glad your live website maps are back now. For the backend I need to check it, would you mind sharing your website’s wp-admin credentials here in a private reply for me? The previous ones are not working now. Thanks

    foml
    Participant
    Post count: 26
    # 1 month, 3 weeks ago
    This reply has been marked as private.
    AuthorAuthor
    Keymaster
    Post count: 26632
    # 1 month, 3 weeks ago

    Thanks for the info. There is an error of request quota exceeded for the API in the backend https://d.pr/i/Ly11vO Can you check your billing info at your Google Console? Thanks

    nibblers
    Participant
    Post count: 8
    # 2 weeks, 6 days ago

    Hello, I normally wouldn’t add to an existing thread, however this is my exct issue.

    The problem seems to be the key being used in admin events is not updated when the key is updated in theme options.

    I can see clearly that the key programmed in theme options is being used on the frontend, however – the key being used in the backend in an different/old key. I have triple checked the permissions on the key (there are no console errors on the front end) – however in the backend, the console complains about API billing (just like the OP), due to it being a key I don’t recognize and cannot seem to change.

    Where is the key stored in the database? So I can change it in the meantime? I can also provide credentials if needed.

    Thanks!

    nibblers
    Participant
    Post count: 8
    # 2 weeks, 6 days ago
    This reply has been marked as private.
    nibblers
    Participant
    Post count: 8
    # 2 weeks, 6 days ago

    The exact broken key (that I do not recognize) is referenced in this post: https://support.imithemes.com/forums/topic/google-maps-api_key-hardcoded/

    Where is the key hardcoded in Gaea so I can change??

    nibblers
    Participant
    Post count: 8
    # 2 weeks, 6 days ago

    Amazing…

    /public_html/wp-content/themes/Gaea/framework/meta-box/inc/fields/map.php

    Literally has a hardcoded API key in it.

    AuthorAuthor
    Keymaster
    Post count: 26632
    # 2 weeks, 2 days ago

    @nibblers Support is now provided through the ticket system, please open a ticket here: https://support.imithemes.com/help/ticket/new

    II need to close this other users thread to avoid further confusion for the original thread creator. Also I recommend you to change your wp-admin credentials for security reasons.

    Thanks

Viewing 17 posts - 1 through 17 (of 17 total)

The topic ‘Google Maps stopped working’ is closed to new replies.