Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #922479

    hi there,

    my google maps isn’t working,
    after loading the map for a second it becomes a grey square and says:
    “Hoppla! Ein Fehler ist aufgetreten.
    Google Maps wurde auf dieser Seite nicht richtig geladen. Technische Details dazu entnimmst du der JavaScript-Konsole.”

    I have set everything right in my API, i even tried working ones and on this page they are noch working.

    Could you please help me,
    thanks,verena

    #922710

    Hey verena_1992,
    I took a look and found that you had a function in your functions.php with a different API key that override your API key.
    I removed the function and now your maps are working.
    The code I removed was:

    function ava_googlemaps_apikey() {
    	$prefix  = is_ssl() ? "https" : "http";
        wp_deregister_script('avia-google-maps-api');
    	wp_register_script( 'avia-google-maps-api', $prefix.'://maps.google.com/maps/api/js?key=KEY-IN-THE-Private-Content-Area', array('jquery'), '3', true);
    	wp_enqueue_script('avia-google-maps-api');
    }
    add_action('init', 'ava_googlemaps_apikey');

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.