Home Forums WoodMart support forum Google Map Not Working – Uncaught ReferenceError: Maplace is not defined

Google Map Not Working – Uncaught ReferenceError: Maplace is not defined

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #54329

    Zach Henshall
    Participant

    This is the full error from inspect on Chrome –

    Uncaught ReferenceError: Maplace is not defined
    at HTMLDocument.<anonymous> ((index):824)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)
    at HTMLDocument.K (jquery.js?ver=1.12.4:2)
    util.js:229 Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required
    ZB.j @ util.js:229
    util.js:229 Google Maps API warning: RetiredVersion https://developers.google.com/maps/documentation/javascript/error-messages#retired-version
    ZB.j @ util.js:229

    #54338

    Zach Henshall
    Participant

    Just to add, I’ve disabled all other plugins and even tried a suggestion you made to another user earlier to modify the google-map.php shortcode file without any luck. I’ve even disabled our Cloudflare CDN to ensure it is nothing there.

    #54353

    Hello,

    Please find woodmart/inc/shortcodes/google-map.php file and replace this line in it

    woodmart_enqueue_script( ‘maplace’ );

    for this line

    wp_enqueue_script( ‘maplace’ );

    Best Regards

    #54354

    Zach Henshall
    Participant

    Thanks for getting back to me.

    I have already tried changing that line. I changed it back as it made no difference I didn’t want to complicate any other troubleshooting.

    For what it is worth I’ve modified the line as you asked but from what I am seeing here it is still broken.

    Cheers

    #54365

    Hello,

    Please provide your admin access and FTP

    Best Regards

    #54366

    Zach Henshall
    Participant

    Details

    #54402

    Artem Temos
    Keymaster

    OK, we are waiting for the FTP access.

    #54465

    Zach Henshall
    Participant

    FTP Details

    #54468

    Artem Temos
    Keymaster

    The data seems to be wrong. Both for WordPress dashboard and FTP. We can’t log in.

    #54473

    Zach Henshall
    Participant

    Password update

    #54478

    vikktor
    Participant

    Same problem here, after last theme update, google maps stopped working.

    From browser console:

    ReferenceError: Maplace is not defined[Learn More]
    kontakt:1682:5
    perf_trace {“name”: “e2e”, “parent”: “PageEvents.BIGPIPE_ONLOAD”}

    #54481

    Hello,

    We have checked and see that code line has been modified in the process of copying that is why code brought no effect. Please try again and replace this line

    woodmart_enqueue_script( 'maplace' );

    with this one:

    wp_enqueue_script( 'maplace' );

    This line is in this file woodmart/inc/shortcodes/google-map.php

    Best Regards

    #54487

    Zach Henshall
    Participant

    Okay, I see what you mean. The map container is now loading but is only showing a gray background, there is no map loading correctly.

    Thanks for the help so far.

    #54490

    Zach Henshall
    Participant

    UPDATE – If I drop the person onto the map then street view loads but no maps…..

    #54495

    Hello,

    Please use integer value in the zoom configuration.

    http://prntscr.com/j9vbdn

    Best Regards

    #54500

    Zach Henshall
    Participant

    Ah, that fixed it. Thanks so much for all the help. I’m guessing the change of code will be in the next theme update?

    #54505

    Artem Temos
    Keymaster

    Yes, we will fix it in our next theme update.

    #54508

    vikktor
    Participant

    Hello Elise,

    that line fixed it. Thanks!

    #54515

    Artem Temos
    Keymaster

    You are welcome!

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