Home Forums WoodMart support forum Google maps does not show up in contact page

Google maps does not show up in contact page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #716598

    supp0rt
    Participant

    Hello,

    I am getting these 2 errors in the browser Dev Console on the contact page:

    maplace.min.js?ver=8.4.1:1 Uncaught ReferenceError: google is not defined
        at maplace.min.js?ver=8.4.1:1:17440
    
    googleMap.min.js?ver=8.4.1:1 Uncaught ReferenceError: woodmartThemeModule is not defined
        at String.<anonymous> (googleMap.min.js?ver=8.4.1:1:84)
        at ce.each (jquery.min.js?ver=3.7.1:2:3129)
        at googleMap.min.js?ver=8.4.1:1:16
        at googleMap.min.js?ver=8.4.1:1:2492

    Because of this, the Google Map does not appear. I use WP Rocket to optimize my site.

    In WP Rocket, under JavaScript optimization:

    * Minify JavaScript Files: enabled
    * Load JavaScript deferred: enabled
    * Combine JavaScript Files: disabled
    * Delay JavaScript Execution: disabled

    I added the following exclusions in both the Minify JS and Load JavaScript deferred exclusion lists:

    googleMap.min.js
    maplace.min.js
    woodmart/js/scripts/elements/googleMap.min.js
    woodmart/js/libs/maplace.min.js
    maps/api/js
    maps.googleapis.com
    maps.googleapis.com/maps/api/js
    woodmartThemeModule.googleMapsCallback

    I even disabled any JS minification and still the error was there.

    I also confirmed that the Google Maps API request is present and loads with this callback:

    https://maps.google.com/maps/api/js?libraries=geometry&callback=woodmartThemeModule.googleMapsCallback&v=weekly&key=***&ver=8.4.1

    The API key is called from the theme settings not the map element.

    Could you please advise:

    1. whether this is a known dependency/order issue with woodmartThemeModule,
    2. and whether there is anything specific I should verify in the Google Maps setup for Woodmart.

    Best Regards

    • This topic was modified 2 months, 1 week ago by supp0rt. Reason: Typo corrections + added some more info
    #716665

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Please deactivate all the 3rd party plugins and activate only theme-required plugins on the site and then check the issue. I am sure your issue will be solved. Then, activate the 3rd party plugins one by one and check which plugin is creating the issue for you.

    Otherwise, if the issue still exists then keep the 3rd party plugins deactivated and share the WP admin login details of your site so I will check and give you a possible solution.

    Best Regards

    #716756

    supp0rt
    Participant

    Hello @aizaz_awan,

    I followed the debuggin procedure you described, and in my case the issue turned out to be caused by the Complianz plugin.

    For anyone else experiencing the same problem and using Complianz (GDPR/CCPA Cookie Consent), this article from Complianz solved the problem for me: https://complianz.io/woodmart-google-maps/

    Best Regards

    • This reply was modified 2 months, 1 week ago by supp0rt.
    #716780

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Thank you very much for sharing the solution with us.

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Thanks for contacting us.

    Have a great day.

    Topic Closed.
    Best Regards.

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

The topic ‘Google maps does not show up in contact page’ is closed to new replies.