• Resolved tomdux

    (@tomdux)


    I am developing a new website a having trouble with Complianz. I went through all settings successfully.

    Now, when the page contains YouTube video, the plugin replaces “src” attribute of my site
    logo in the header (img tag, PNG file, not animated) by “about:blank” string. The logo is hosted on the same site. Other images on the given page is showing correctly.

    On pages without a video, all works as intended.

    I needed to set “Enable safe mode” to true to disable this behavior.

    Where to look for a solution, please?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    This sounds like an incorrect regex match. Can you post the html that causes this? Then I can test with that same html.

    What integrations are enabled, Elementor perhaps?

    If you disable the integrations one by one, which integrations are causing it?

    Thread Starter tomdux

    (@tomdux)

    It’s this URL: https://2022unyp.states.cz/undergraduate-programs/bachelor-of-business-administration/

    Facebook is the responsible integration. When I switched it off, all has started working.

    Thank you for your amazingly quick reply!

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    There’s probably something in the html before this that triggers the integration, something with a facebook string in it. Can you check that?

    Thread Starter tomdux

    (@tomdux)

    We have #fb-root element immediately after <body> tag.
    Screen:
    https://screens.zvladnu.cz/1/sublime_text_2022-11-30_11-20-22.png

    I have tested it and it really causes the problem. When the <script> tag is removed, all works correctly.
    Anyway including FB <script> element is done according to their guidelines.

    What’s the correct implementation then?

    Shall I make a condition in code like this:
    <?php if(isset($_SESSION['cmplz_marketing']) && $_SESSION['cmplz_marketing'] == 'allow) echo '...'; ?>
    (or in GTAG manager…)

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    I managed to reproduce the problem based on your html.

    The issue seems to be caused by the no script tagmanager implementation:

    <noscript><iframe src=https://www.googletagmanager.com/ns.html?id=**** height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

    Please note the missing quotes in the src. Because the quotes are missing, the pattern continues to find a match, which results in a far to broad match. The result is that it replaces the logo src.

    Please try changing to the following, with quotes:

    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=****" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

    Thread Starter tomdux

    (@tomdux)

    Thank you a lot! Perfect. It works!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Picture src is replaced by “about:blank” on pages containing YouTube video’ is closed to new replies.