Home Forums Theme support Google Maps problem on Contact Page

This topic contains 8 replies, has 2 voices, and was last updated by  7Theme Support 8 years, 9 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • Hello everyone,

    on my contactpage under Custom ‘Options’ -> ‘Slideshows’ ->
    ‘…or custom content’ I have the following code:

    [map type='ROADMAP' width='100%' height='350px' zoom='10' x='52.321510' y='21.219850']

    It used to work but now suddenly I have an error in the console and the map isn’t displayed.

    Here are the errors:
    js?sensor=false:32 Google Maps API error: MissingKeyMapError
    util.js:209 Google Maps API warning: NoApiKeys
    util.js:209 Google Maps API warning: SensorNotRequired

    I don’t know if it’s important but I do not have any maps under ‘Maps’ in menu. As I’ve said, everything used to be fine…

    Thanks in advance!

    Here’s the link: http://fikser.net/kontakt/

    Hi,

    have you fixed the problem on your website? Because the map on the page you posted is working…

    Hello,
    no, the problem hasn’t been fixed yet. I had a vacation so I’ve removed the map temporarily. Now it’s back again so you can take a look. It’s about the map in the slider.

    Ok, first thing: as far as I know you cannot use two maps from Google on the same page. The second thing is that there is a missing file (functions.php). Have you changed something in the files / theme? Removed files?

    Now there’s only one Google Map and it still doesn’t work.
    I haven’t changed any theme files, I have created a child-theme and in my functions.php there’s only:

    function my_theme_enqueue_styles() {
    
        $parent_style = 'parent-style';
    
        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array( $parent_style )
        );
    }
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );

    as I can see in a console the yooco/script/function.js file is missing but the funny thing is that it’s on the server with permissions -rw-r–r–

    Hi,

    yes, saw the notice in the source code. But it’s really very strange, because on our demo website it’s working without any problem… Are you sure you changed nothing?

    If you want, you can embed the map also with the Google Maps iframe, I think it’s the fastest way to solve the problem. You can find in on the Google Maps page -> Menu (Burger Menu on top left -> Share or Embed Map)

    Yes, I’ve changed nothing. Well, I’ll create then a map in contact-page.php but I hoped we’d find a solution. Thanks anyway 🙂

    Ok, we will test it again and try to find the problem

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.