• Resolved nikolas9788

    (@nikolas9788)


    Hi, we have an ACF with Google Maps on this page. As soon as Complianz is activated, the map is not loading anymore. The problem is new, we cannot tell, what caused it. It does not help to enable or disable the ACF and/or Google Maps integration as it was proposed in another thread. Do you guys have any other ideas..? Thanks! Regards, Nikolas

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 30 total)
  • Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @nikolas9788,

    It seems https://www.landarzt-sein.de/kreise/schwalm-eder-kreis/?cmplz_safe_mode=1 works, meaning something is being blocked.

    Is there something in the script center that might cause this as well?

    There’s a dependency in the theme on the Google API, is ACF shipped with the theme?

    regards Aert

    Thread Starter nikolas9788

    (@nikolas9788)

    Hi Aert, thank you for your quick response. Yes, we came to the same conclusion, but we cannot find the reason for this. Also, it worked just fine for month and stopped working a few days ago. Has there been any update that could have caused this?

    We have nothing in the script center.

    What do you mean with dependency? ACF has been added manually and we heavily rely on it so I cannot switch it off for testing.

    Do you have any other suggestions?

    Regards, Nikolas

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @nikolas9788,

    In this script; https://www.landarzt-sein.de/wp-content/themes/landarzt-theme/bundled-assets/scripts.e7c29e7da4e590223ca1.js

    There’s an error because it’s expecting the Google Maps API, but it’s blocked by Complianz. It should be unblocked when disabling the Integrations for ACF and Google Maps, as these are related to Google Maps.

    Could you disable Google Maps and ACF, clear cache and let me know. So I can have a look at what remains?

    The below filter should at least release the API;

    // Whitelisting inline script for Complianz
    add_filter ( 'cmplz_script_class',
    function( $class, $total_match, $found ) {
    if ( $found && false !== strpos( $total_match, 'google-map-js' ) ) {
    $class = 'cmplz-native'; // add cmplz-script for Marketing and cmplz-stats for Statistics
    }
    return $class;
    }, 10 , 3
    );
    Thread Starter nikolas9788

    (@nikolas9788)

    Hi Aert, thank you very much for your help!

    So the Integrations for Google Maps and ACF are switched off and there is no active caching on the website, so you should be able to have a look.

    I added the filter and now the map works – very nice. What does this script do excactly?

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @nikolas9788,

    I will have a look, but it does seem like a custom theme with a combined script, which has a dependency issue, and releasing the API with the above script is all we can do for now. Or the theme developer wants to have a look at conforming with our Consent API: https://wpconsentapi.org/

    The script itself adds a class (cmplz-native) to an inline script, in this case, a script with the ID google-map-js which holds the Maps API. By adding the cmplz-native class, the cookie blocker knows to skip the inline script when parsing for known 3rd party scripts.

    Hope this helps,

    regards Aert

    Hello,

    I have the opposite problem with ACF and it’s Google Maps field. The Complianz plugin is not blocking the script and the maps gets displayed no matter which cookie category I consented to. Could you have a look at that? How can I provide a link to you?

    Kind regards, Jonas

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @bytefight,

    You can post the URL here, or via complianz.io/support.

    Could you please also tell me which theme you’re using and if ACF is shipped with the theme, or did you add it independently?

    Hi,

    heres a temporary link to the website: https://www.temporary-url.com/9FC905

    I’m using a custom theme which I coded myself and added ACF independently as a plugin. I made no customizations to ACF’s Google Maps feature, except defining the api key via a hook in functions.php (which is mandatory; see method 2 under requirements: https://www.advancedcustomfields.com/resources/google-map/).

    Thanks in advance!

    @aahulsebos any updates here?

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @bytefight,

    I see an iFrame with an appended API key, which in essence should be dealt with by Complianz.

    Could you enable Google Maps as an integration, disable ACF under Integrations – Plugins, perhaps add google.com/maps/ to the script center as URL of an IFrame to be blocked?

    And then let me know? Otherwise I’ll set it up myself, regards Aert

    Hi @aahulsebos,

    I can’t get it to work, tried everything you suggested ??

    Here are some screenshots of my configuration and how the iFrame is generated in php. You have any ideas why the plugins isn’t blocking the iFrame?

    https://prnt.sc/xlsgfl
    https://prnt.sc/xlsh2t
    https://prnt.sc/xlshjs
    https://prnt.sc/xlsiun

    Thanks in advance!

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @bytefight, @nikolas9788,

    Could you try installing https://github.com/Really-Simple-Plugins/complianz-gdpr/tree/disable-integrations and disabling the necessary integrations?

    regards Aert

    Hey @aahulsebos, could you give a little more explanation on the installation process? Are any settings from the master plugin overwritten when installing?

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @bytefight,

    Sorry for the late reply, but the official release was not much later. Let me know if you have any questions,

    regards Aert

    Hey @aahulsebos,

    I’ve installed the new update but is has no advance for me. Google map still not getting blocked. I’ve tried your previous tips, but it didn’t change anything.

    You have any other ideas?

    Kind regards, Jonas

Viewing 15 replies - 1 through 15 (of 30 total)
  • The topic ‘Google Maps (via ACF) not working with Complianz’ is closed to new replies.