• Resolved andrewbraun

    (@andrewbraun)


    So I’ve got a pretty weird problem here. The site I’m working on has a GravityForm in the hero, and it uses an iframe to draw in some things. Slightly below, there’s a YouTube iframe embed.

    When the YouTube Complianz integration is disabled, everything loads normally. When it’s enabled, though, the video disappears from its intended position… and reappears wrapped in a div in the GravityForms code, seemingly mushed into the GravityForms iframe!

    I’ve tried disabling iframe lazyloading, replacing the video, adding IDs, turning the GravityForms plugin integration on and off in Complianz, and a few other things. Could really use a hand with this!

    (The below images are zoomed out to show hero and video in one shot)
    Page with Complianz enabled: https://i.imgur.com/McESKZa.png
    Without (how it should be): https://i.imgur.com/h1lA0Af.png

    GravityForms iframe with Complianze: https://i.imgur.com/wvPQtx6.png
    Original video iframe with Complianz: https://i.imgur.com/cZCexIe.png

    As you can see, Complianz seems to be targeting the first iframe with the data that should be going into the second. Would super appreciate any insight you have ??

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @andrewbraun,

    Thank you for the detailed explanation & screenshots.

    Could you try enabling the “Enable cookie blocker for ajax loaded content” option under Settings > General, to see if that has any effect?

    Let me know if you have any updates about this.
    Kind regards,
    Jarno

    Thread Starter andrewbraun

    (@andrewbraun)

    Hi Jarno! Thanks ?? Unfortunately that didn’t seem to do anything. Any other thoughts?

    I need to get the site useable, so I’ll be fixing the issue later today by just uploading the video to the site rather than linking to YouTube. Still worth figuring out what the issue is here in case we need to do a YouTube embed and run into this issue again in the future!

    Thread Starter andrewbraun

    (@andrewbraun)

    I really should have checked the console earlier! Found this error:

    Uncaught TypeError: can't access property "indexOf", contents is undefined
        <anonymous> https://newotm.wpengine.com/:363
        jQuery 9
        cmplzEnableMarketing https://newotm.wpengine.com/wp-content/plugins/complianz-gdpr/assets/js/complianz.min.js?ver=5.3.0.1:1
        jQuery 2
        cmplzEnableMarketing https://newotm.wpengine.com/wp-content/plugins/complianz-gdpr/assets/js/complianz.min.js?ver=5.3.0.1:1
        setBlockedContentContainer https://newotm.wpengine.com/wp-content/plugins/complianz-gdpr/assets/js/complianz.min.js?ver=5.3.0.1:1
        conditionally_show_warning https://newotm.wpengine.com/wp-content/plugins/complianz-gdpr/assets/js/complianz.min.js?ver=5.3.0.1:1
        <anonymous> https://newotm.wpengine.com/wp-content/plugins/complianz-gdpr/assets/js/complianz.min.js?ver=5.3.0.1:1
        jQuery 13

    Screenshot: https://i.imgur.com/Ro0SqU4.png

    Going to see if I can hunt down the source of this.

    Thread Starter andrewbraun

    (@andrewbraun)

    @jarnovos I’m going to push my self-hosted video solution through tonight but would definitely welcome some pointers as to why Complianz seems to be losing count of my iframes ??

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @andrewbraun,

    I’ve been trying to reproduce the issue but have yet to succeed in doing so, unfortunately.

    How has the YouTube video been inserted, is it a default Divi video element? Or are you copying the embed code from YouTube and inserting it as Custom HTML?

    Any additional information could help.
    Kind regards,
    Jarno

    Thread Starter andrewbraun

    (@andrewbraun)

    Hey @jarnovos! Thanks for getting back to me ?? Currently the videos are in Divi video modules, but I also tried going directly with the html embed code–same result both ways. I have noticed, though, that the issue doesn’t seem to occur on every page that has a GravityForm and a video (example: https://newotm.wpengine.com/expat-tax-services/us-owned-foreign-corporation/). I’m going to look through and see if there’s a pattern.

    Thread Starter andrewbraun

    (@andrewbraun)

    @jarnovos Figured out part of it! There’s definitely a GravityForms conflict–if you disable GravityForms Complianz goes back to normal. We definitely need forms and videos to coexist on the same page though, so disabling GravityForms wouldn’t be a great option.

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @andrewbraun,

    Good to hear you were able to narrow down the cause of this.

    Would it be possible for you to reach out to us via email, so we can investigate further why this happens? You can send an email to: [email protected].

    Kind regards,
    Jarno

    Thread Starter andrewbraun

    (@andrewbraun)

    Sure, will do! Thanks ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Complianz Moving YouTube Video into GravityForm’ is closed to new replies.