-
AuthorPosts
-
January 4, 2019 at 4:15 pm #1050022
Hello,
I run 3 Enfold theme-sites that uses google maps: frakka.se, projakthjalpen.se and riddersvik.nu.
The latter works fine but I just cannot get the Google Maps API Key to be successfully checked on the other two sites. I guess that the first one is woring because it is older.
For the other sites I have created API-kays with ni restriction (for now, to mitigate problems). At least for projekthjalpen.se I have created a billing account and connected the project in which the api kay lays to that billing account. I am sure that the card in the billing account is valid and I have even made a payment. But it do still not work.
BR
RikardJanuary 4, 2019 at 4:23 pm #1050027And the Developers Console details:
January 8, 2019 at 2:45 am #1051132Hi,
Thank you for using Enfold.
You haven’t entered an API key in the “projekthjalpen.se” site. Please generate an API key and put it in the Enfold > Google Services > Google Maps field.
This should help: https://kriesi.at/documentation/enfold/google-map/#how-to-register-a-google-maps-api-key
Best regards,
IsmaelJanuary 8, 2019 at 11:23 am #1051327Sorry, I forgot to save the API key in the admin user interface. It is now added again (still not working) and saved. You can still use the already added logins for the API-key in Google Developer Console etc.
January 9, 2019 at 1:01 pm #1051810Hi,
Did you delete the project? The error says that the project has been deleted.
js?v=3.30&key=APIKEYHERE&callback=aviaOnGoogleMapsLoaded:54 Google Maps JavaScript API error: DeletedApiProjectMapError
https://developers.google.com/maps/documentation/javascript/error-messages#deleted-api-project-map-errorPlease create another project and regenerate a new API key. Refer to the documentation above for more info.
Best regards,
IsmaelJanuary 10, 2019 at 2:29 pm #1052334Hello Ismael,
Do you mean for projekthjalpen.se? That project has not been deleted. I have added the login for that project as private content so you can check for yourself.
The google map in riddersvik.nu is working. I only added that if there might be any hints. But I really guess there will be no hints since the the map is so old that it is probably not affected by Googles changes to their map services.
(To make things easier, we can leave out frakka.se of the the discussion, if that’s OK by you?)
Best regards,
RikardJanuary 14, 2019 at 12:14 am #1053457Hi,
Yes, I am referring to that site. I added the API key again but it’s generating the same error. Please delete the current project, create a new one and generate a new API key. Make sure that the site is added as a http referrer.
Best regards,
IsmaelJanuary 14, 2019 at 3:44 pm #1053715Hello,
I deleted the project, created a new one and made sure that it has functioning payment methods attached to it, created a new API key and added in the Enfold Child Theme Options-page. Still the same result. I have done this procedure before with the same result.
Best regards,
RikardJanuary 15, 2019 at 12:31 am #1053888Hi,
Alright. I would like to check the functions.php file but the Appearance > Editor panel is not accessible. Please take a look at that file and disable any function that you think is related to google maps.
Best regards,
IsmaelJanuary 15, 2019 at 12:51 pm #1054091Hello,
How do I make Appearance > Editor panel accessible? (I have not made anything to make it inaccessible. It has been that way by default.)
Anyways, the only code I could find when searching the functions files for “map” were the following
In themes/enfold/functions.php:
register_widget( ‘avia_google_maps’ );
In themes/enfold/functions-enfold.php:
if(!function_exists(‘avia_maps_key_for_plugins’))
{
add_filter( ‘script_loader_src’, ‘avia_maps_key_for_plugins’, 10, 2 );function avia_maps_key_for_plugins ( $url, $handle )
{
$key = get_option( ‘gmap_api’ );if ( ! $key ) { return $url; }
if ( strpos( $url, “maps.google.com/maps/api/js” ) !== false || strpos( $url, “maps.googleapis.com/maps/api/js” ) !== false )
{
// if no key, we can generate a new link with our key
if ( strpos( $url, “key=” ) === false )
{
$url = av_google_maps::api_url( $key );
}
}return $url;
}
}and
Google Map Settings:
[av_privacy_google_maps]in themes/enfold-child/functions.php:
nothing
Disabling the above did not help. Did I miss something? WHen searching for “google” I came across som funtions related to google webfonts and tracking code as well, in themes/enfold/functions-enfold.php but maybe I should search for something else (functions-enfold.php is 2263 lines high)?
Best regards,
RikardJanuary 16, 2019 at 7:42 am #1054498This reply has been marked as private.January 18, 2019 at 12:57 am #1055280Hi,
– OK –
Best regards,
BasilisJanuary 18, 2019 at 10:51 am #1055393Any ideas?
I have several commercial sites suffering from this and it’s beginning to be quite a problem.
Best Regards,
RikardJanuary 21, 2019 at 7:25 am #1056458Hi,
I found 4 directories in your server and I’m not sure which one is which. Which directory should we modify?
Best regards,
IsmaelJanuary 21, 2019 at 12:24 pm #1056561Hello,
It’s the one called projekthjalpen.se
Best Regards,
RikardJanuary 24, 2019 at 4:07 am #1058012Hi,
I’m still getting the same “Deleted Project” error. Can we access the gmail account where you created the project?
Best regards,
IsmaelJanuary 24, 2019 at 1:09 pm #1058132Hello,
Absolutely. Here it is.
Best Regards,
RikardJanuary 25, 2019 at 11:08 am #1058604Hi,
I need to pass the second verification in order to access that account. Can we access the (Email address hidden if logged out) email account from your cpanel?
Best regards,
IsmaelJanuary 25, 2019 at 11:19 am #1058610Hello Ismael,
Yes, you can access (Email address hidden if logged out) email account from my cpanel.
Best Regards,
RikardJanuary 25, 2019 at 11:54 am #1058625This reply has been marked as private.January 25, 2019 at 1:12 pm #1058695This reply has been marked as private.January 28, 2019 at 6:37 am #1059526Hi,
Yes, I need access to your cpanel in order to open the email address. Does the “info” email address have the same login details as your gmail account?
Best regards,
IsmaelJanuary 28, 2019 at 12:21 pm #1059591This reply has been marked as private.January 30, 2019 at 9:33 am #1060390Hi,
Thanks for the update.
I created a new project called “Enfold Google Map” in your console (https://console.cloud.google.com/apis/credentials) and generated a new API key. The map is working properly now. Please don’t forget to remove the browser cache prior to checking the page.
Best regards,
IsmaelJanuary 30, 2019 at 11:17 pm #1060639Wonderful!
Thank you so much Ismael! You are very welcome to close this thread, if you like.
Best Regards,
RikardFebruary 4, 2019 at 2:15 am #1062445 -
AuthorPosts
- The topic ‘Google Maps API Key just wont work’ is closed to new replies.