Viewing 26 posts - 1 through 26 (of 26 total)
  • Author
    Posts
  • #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
    Rikard

    #1050027

    And the Developers Console details:

    #1051132

    Hi,

    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,
    Ismael

    #1051327

    Sorry, 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.

    #1051810

    Hi,

    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-error

    Please create another project and regenerate a new API key. Refer to the documentation above for more info.

    Best regards,
    Ismael

    #1052334

    Hello 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,
    Rikard

    #1053457

    Hi,

    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,
    Ismael

    #1053715

    Hello,

    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,
    Rikard

    #1053888

    Hi,

    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,
    Ismael

    #1054091

    Hello,

    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,
    Rikard

    #1054498
    This reply has been marked as private.
    #1055280

    Hi,

    – OK –

    Best regards,
    Basilis

    #1055393

    Any ideas?

    I have several commercial sites suffering from this and it’s beginning to be quite a problem.

    Best Regards,
    Rikard

    #1056458

    Hi,

    I found 4 directories in your server and I’m not sure which one is which. Which directory should we modify?

    Best regards,
    Ismael

    #1056561

    Hello,

    It’s the one called projekthjalpen.se

    Best Regards,
    Rikard

    #1058012

    Hi,

    I’m still getting the same “Deleted Project” error. Can we access the gmail account where you created the project?

    Best regards,
    Ismael

    #1058132

    Hello,

    Absolutely. Here it is.

    Best Regards,
    Rikard

    #1058604

    Hi,

    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,
    Ismael

    #1058610

    Hello Ismael,

    Yes, you can access (Email address hidden if logged out) email account from my cpanel.

    Best Regards,
    Rikard

    #1058625
    This reply has been marked as private.
    #1058695
    This reply has been marked as private.
    #1059526

    Hi,

    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,
    Ismael

    #1059591
    This reply has been marked as private.
    #1060390

    Hi,

    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,
    Ismael

    #1060639

    Wonderful!

    Thank you so much Ismael! You are very welcome to close this thread, if you like.

    Best Regards,
    Rikard

    #1062445

    Hi,

    You’re welcome. We’ll close the thread now.

    Have a nice day.

    Best regards,
    Ismael

Viewing 26 posts - 1 through 26 (of 26 total)
  • The topic ‘Google Maps API Key just wont work’ is closed to new replies.