Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter sofiataz

    (@sofiataz)

    It is also breaks some other parts of the website, like not displaying some background sliders, so i guess it blocks some of the scripts that the theme or wpbakery builder uses.

    So, for now i disable the plugin till i can apply a solution

    • This reply was modified 1 year, 8 months ago by sofiataz.

    Hi @sofiataz,

    We have several integration for different maps, please take a look at this article for using known solutions: https://complianz.io/debugging-google-maps/

    We also have an integration with WPBakery, if you can turn on Complianz again so that we have a look at it, I am sure we can find a way to solve it.

    Let me know when we can take a look from the front end!

    Kind regards, Kim van Dijk

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @sofiataz,

    I have visited the website and clicked some menu items to find the Google Map this concerns, it appears to be the one found on the /full-accommodation-list/ page.

    Looks like it’s a Map from the WP Google Maps Gold plugin. We unfortunately don’t have this plugin to set it up to test for ourselves, we had reached out to the WPGM Gold team some time ago, but no luck yet.

    So, I’m working based on what I see on your page.

    To block this Map, you can try adding the below file as a .php file in the folder /wp-content/mu-plugins/ on your site. This should block the Maps API and WPGM scripts, and lets the WPGM scripts wait until the Maps API has been unblocked.

    custom-wp-google-map-gold.php

    Kind regards, Jarno

    Thread Starter sofiataz

    (@sofiataz)

    Hi @jarnovos,

    I disable the plugin last night. Also i had the plugin not enable on the integrations page.

    Today i enable it again. That made the maps display ok, but user could not control and block it. When i enable it again on the integrations page, it again shows a white placeholder instead of the map.

    I’m trying to add the .php file you said, but there is no mu-plugins folder. Should i create one only for this file?

    Thanks for the reply

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @sofiataz,

    Indeed, the Map did not correctly reload after consent because there is currently no integration with this exact Map plugin. The attached PHP file is my attempt at an integration with your Google Maps plugin, based on what I see on your website.

    And yes, you can create the mu-plugins folder manually and then upload the PHP file there. This article provides further details on the installation of MU Plugins: https://complianz.io/adding-filters-with-mu-plugins-quick-easy/

    Kind regards, Jarno

    Thread Starter sofiataz

    (@sofiataz)

    Hi @jarnovos

    I created the folder and put the code you suggested there. The issue is not solved, i still have the white placeholder . Have i implemented wrong?

    Thanks for the reply

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @sofiataz,

    You had uploaded the integration file correctly: it already correctly blocks both the Google Maps API and the WP Google Maps Gold scripts, but the issue occurs when (re)loading those scripts after consent is obtained in the Cookie Banner.

    These ‘dependent’ scripts have to be reloaded in a specific order, otherwise console errors such as “google is undefined” may occur and the Map doesn’t load correctly as a result.

    We would be glad to look further into this, but it’s always a bit of a trial and error process; and the challenging part is being able to test this for ourselves without having us a copy of the WP Google Maps Gold plugin.

    If you would like us to investigate this integration further, please send us an email at support(at)complianz.io, and we will try our best to help you resolve this behavior.

    If you would rather not block the Google Map any longer, you can remove the integration file from the /mu-plugins/ directory and disable the Google Maps integration under Complianz > Integrations > Services, and Complianz won’t affect the display of your Map any longer.

    Kind regards, Jarno

    • This reply was modified 1 year, 8 months ago by jarnovos.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Maps are not loaded’ is closed to new replies.