• 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 - 16 through 30 (of 30 total)
  • Here’s the link again, the old one expired: https://www.temporary-url.com/AE45B

    Hey @aahulsebos,

    any updates on this? I would love to use your plugin since it has a wide set of features. But otherwise if it isn’t able to block a simple Google Maps iframe I would have to use another solution. Please help me on this one!

    @aahulsebos

    Will this work if I use the implementation from the official ACF docs and render the map without an iframe?

    See https://www.advancedcustomfields.com/resources/google-map/

    Thanks!

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    @bytefight

    There is an Advanced Custom Fields integration specifically aimed at Google Maps. There are also several supported Google Maps plugin which work out of the box, as well as most default maps implementations.

    Please check the following:
    – Google Maps integration is enabled in complianz/integrations/services
    – Safe mode is disabled in complianz/settings

    In some cases, when a custom Google Maps implementation is used, a dedicated integration is needed, often using the ‘maps.googleapis.com/maps/api/js’ URL and ‘initMap’ variable in the inline script. That can be fixed with an mu-plugin:
    https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/custom-google-maps.php
    It will probably need some customizing, depending on your implementation.

    As Aert looked at your site before, and mentioned that it should be blocked out of the box, it doesn’t sound like a special integration is needed. Can you post your domain again? I’ll take a look at it tomorrow to see if we can see the problem.

    Hey @rogierlankhorst,

    heres the link again: https://www.temporary-url.com/AE45B

    Google maps integration and placeholder is active. Safe mode is disabled. Still not getting blocked. ACF integration is also checked, but I think my implementation has nothing to do with ACF.

    Currently I am only using the Maps Embed API via a simple iFrame (you can see it in the screenshots I posted before).

    Thanks in advance!

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Hi @bytefight,

    Can you go to complianz/integrations/script center,

    Then add the string

    google.com/maps/embed/v1

    to the field “URL’s from iFrames that should be blocked before consent.”

    If that works, we can add a little mu-plugin to get a placeholder.

    Still loading normally

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Strange, I see the cookie blocker is active, can’t see why it’s not blocking this URL.

    Can you try to enable “Enable cookie blocker for ajax loaded content” in complianz/settings?

    If the iframe is somehow loaded with javascript after the page load,this might help. Although this doesn’t seem to be the case.

    I’ll do some tests locally with this html.

    It’s now activated, still nothing changed

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    I think I found the issue. In your source of the Google Map embed (in your address) there is a space. The regex pattern for an iframe URL currently does not match with a URL with a space in it.

    Can you try to install this branch:
    https://github.com/Really-Simple-Plugins/complianz-gdpr/tree/allow-for-space-in-google-map-embed

    I have adjusted the regex pattern to allow a space in the URL, so it should match.

    The ajax loaded content setting and the script center settings should not be necessary anymore.

    Awsome, can you give me a bit more detail on how to install this branch?

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    You can install it by following these steps:
    – download the zip file from github.

    (next 2 steps are not necessary, but makes updating easier)
    – unzip, then rename the folder to “complianz-gdpr”
    – zip the file again

    – go to plugins, add new, upload, and upload the new zip file.
    – choose “replace”, when WordPress asks this.

    That’s it!

    Works like a charm, thank you! Great explanation!

    Can you notify me, when this enhancement is going live and i can update again?

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    I don’t think it will make the coming update (which is the version you already have installed anyway) but the one after that it should be included.

    Hi Rogier,

    I am also having this issue with a Google Map iframe, but the test site is behind a firewall so I can’t give you the address. We also use Advanced Custom Fields.

    The error is “Uncaught ReferenceError: google is not defined”

    * Deactivating the Complianz plugin fixes the error, but we would like to use this plugin.
    * The Google Maps integration setting did not work, and I have not tried the branch you mentioned yet.
    * The “?cmplz_safe_mode=1” on the page however did work.

    Has the fixed branch made it into production? We are using v5.1.0

    Best regards,
    CSX

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