Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    It should work on your localhost. Does it also happen with a default theme, and all other plugins disabled?

    Can you check the browser console for any errors?

    Thread Starter toimisto

    (@toimisto)

    I apparently had disabled the javascript api in console which fixed errors on the webpage BUT I’m still facing same error in wp-admin and unable to setup starting point.

    Google Maps API error: MissingKeyMapError

    Thanks for your help!

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Google Maps API error: MissingKeyMapError Isn’t necessary breaking anything, but it’s easy to fix by setting a browser key. You can create one in the Google Console.

    The start point doesn’t autocomplete, or simply doesn’t remember what you entered? Can you disable all other plugins to make sure it works then?

    Thread Starter toimisto

    (@toimisto)

    Im getting the missingkeymap error only on wp-admin thus im not able to setup the location since the input is just showing google error there. But I realised I can override it with the shortcode tag so it’s all good. Thanks for your support and fantastic plugin!

    I have the same problem. I can’t safe any settings beacuse of this error.

    js?libraries=places&language=en&ver=4.5.3:32 Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @marcelaerts you are using the latest plugin version?

    You can try and create and browser key here. Let me know if that really fixes it.

    Other users have reported the issue as well, I just can’t replicate it so far… The key used to be optional ( but recommended ), maybe they made it required now.

    I also get the error, but it doesn’t influence anything, I can still save the page.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    So keys are required now.

    We no longer support keyless access (any request that doesn’t include an API key). Future product updates are only available for requests made with an API key. API keys allow us to contact developers when required and help us identify misbehaving implementations.

    I do have the latest software. When I try to add a browserkey in the settings from WP Store Locator I get the following error:

    Notice: Undefined index: start_name in /wp-content/plugins/wp-store-locator/admin/class-settings.php on line 146

    Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/wp-store-locator/admin/class-settings.php:146) in /wp-includes/pluggable.php on line 1167

    After returning to the settings page the browserkey is saved but the start point field is still broken.

    Even though I entered a browser key I get the following error:
    js?libraries=places&language=en&ver=4.5.3:32 Google Maps API error: MissingKeyMapError

    Plugin Author Tijmen Smit

    (@tijmensmit)

    The start field doesn’t autocomplete, or any value like ‘Amsterdam’ isn’t saved? It should save it, and geocode the value in PHP if the autocomplete function is broken when you save the settings.

    I checked the code, and the browser key is included on the frontend, but because it was never required it’s not included in the backend code. I will fix this today.

    Thanks.

    *** Hot fix for those who can’t wait for the new release (will be overwritten on update) ***

    Find:
    /wp-content/plugins/wp-store-locator/admin/class-admin.php

    Line:
    354

    Replace

    wp_enqueue_script( 'wpsl-gmap', ( '//maps.google.com/maps/api/js?libraries=places&language=' . $wpsl_settings['api_language'] ), false, '', true );

    With

    wp_enqueue_script( 'wpsl-gmap', ( '//maps.google.com/maps/api/js?libraries=places&language=' . $wpsl_settings['api_language'] . wpsl_get_gmap_api_params( 'browser_key' ) ), false, '', true );

    Plugin Author Tijmen Smit

    (@tijmensmit)

    I’m going away for the weekend, and since I also want to include some other fixes in the update, I don’t have enough time left to test everything properly. So an official update will have to wait till Sunday / Monday.

    But you can easily add the browser key in the code yourself by opening the /admin/class-admin.php file, then look for this line ( the code on line 354 ), and replace it with this.

    wp_enqueue_script( 'wpsl-gmap', ( '//maps.google.com/maps/api/js' . wpsl_get_gmap_api_params( 'browser_key' ) . '&libraries=places' ), false, WPSL_VERSION_NUM, true );

    When saving a new post or a post where latitude and longitude is missing we now receive the following error:

    The Google Geocoding API returned REQUEST_DENIED.

    Error message: This IP, site or mobile application is not authorized to use this API key. Request received from IP address XXX, with empty referer

    Any suggestions?

    Plugin Author Tijmen Smit

    (@tijmensmit)

    You filled in both the server and browser key fields?

    Are you sure the key you filled in the server key field is actually a server key and not accidentally a browser key? Can you try to generate a new one, this sometimes does fix errors like this.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘oops something went wrong on localhost’ is closed to new replies.