-
AuthorPosts
-
October 2, 2018 at 10:51 am #1016965
Hi
I tried all the suggestions you made to fix the google map issue – no success.
reloaded the new google.js file, edited the functions.php (child), updated enfold to 4.4.1, wordpress 4.9.8.
Google API Key was loaded, worked for a couple of days and then stopped, still cant get the google maps to work.
Google API Restrictions set to none, purchasing information loaded.
Please assist.October 2, 2018 at 2:49 pm #1017081Hey kkriel,
Please also post the login link and the api key.
Best regards,
VictoriaOctober 4, 2018 at 11:31 am #1017835This reply has been marked as private.October 6, 2018 at 5:42 pm #1018537Hi kkriel,
I tried to fetch the coordinates and I got this error:
It seems that your Google API key is not configured correctly The key is probably either restricted to the wrong domain or the domain syntax you entered is wrong. Please check your API key here The domain that should be allowed is: http://domain.com/*
It seems like removing the wildcard should fix it as recommended in this thread:
Hope it helps.
Best regards,
NikkoNovember 7, 2018 at 6:21 am #1030701The API is unrestricted – please see attachment.
November 12, 2018 at 5:06 am #1032416Hi,
Did you disable the map element/script before? You got this code in the functions.php file:
add_filter('avf_load_google_map_api_prohibited', 'avf_load_google_map_api_prohibited_true', 10, 1); function avf_load_google_map_api_prohibited_true($prohibited) { $prohibited = true; return $prohibited; }
Please disable it temporarily.
Best regards,
IsmaelNovember 13, 2018 at 6:38 am #1032897Hi
Removed the code – but Google maps still do not load – I have also updated to enfold 4.5
November 13, 2018 at 6:38 am #1032898This only seems to happen with enfold, other templates seem to work fine.
November 14, 2018 at 5:31 am #1033332Hi,
There was an extra space before the actual API key. I removed the space and revalidated the key. It’s working properly now.
Best regards,
IsmaelNovember 15, 2018 at 9:58 am #1033866Hi
Unfortunately not, the map works on the contact page (thank you), but does not work on any of the portfolio pages.
November 16, 2018 at 7:26 am #1034309Hi,
This is what I get in the console when I check one of the portfolio items.
s?v=3.30&key=AIzaSyBgYuGni7VJOwtLTxhZbFmUpWNG8wKu0ak&callback=aviaOnGoogleMapsLoaded:54 You have exceeded your request quota for this API. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors
It says that you have exceeded the request quota for that particular API. Did you setup a billing account or impose a daily limit?
Best regards,
IsmaelDecember 3, 2018 at 4:13 pm #1040375There are no billing limits – please refer back to this topic,
From Google API Console:
Key restrictions
This key is unrestricted. To prevent unauthorized use and quota theft, restrict your key. Learn more
Application restrictions: None
API restrictions: NoneApplication restrictions specify which web sites, IP addresses, or apps can use this key. You can set one restriction type per key.
Application restrictions
NoneDecember 5, 2018 at 3:13 am #1041049Hi,
Thanks for the info. Please refer to this doc.
// https://developers.google.com/maps/documentation/javascript/get-api-key#premium-key
You need to set key restrictions or specify the allowed http referrers.
On the dialog, click Restrict Key.
(For more information, see Restricting an API key.)
On the API key page, under Key restrictions, set the Application restrictions.
Select HTTP referrers (web sites).
Add the referrers (follow the instructions).
Click Save.// https://developers.google.com/maps/documentation/javascript/get-api-key#key-restrictions
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.