• Resolved kram09890

    (@kram09890)


    Hi! Thanks for the plugin, Your work is much appreciated ??

    We noticed a weird behaviour with our YouTube embeds: The iframe URL is loaded correctly as we pass it in the template file, but apparently Complianz changes it to a “null” once cookies are accepted.

    If not accepted, no placeholder is shown, although it is enabled in the backend.

    Before last changes, we had the same problem, but the iframe’s SRC was pointing at youtube-nocookies and we could play the video if cookies weren’t accepted. But as soon as “Agree” was clicked, the SRC would switch to a null value again.

    We are passing the URL using an ACF field:

                <?php foreach ($videos as $video) {
                    $src = 'https://www.youtube.com/embed/' . $video['id'];
                    echo '<div style="font-size: 12px;">ID: ' . $src . '</div>';
                    ?>
                <li class="v-single-artist__videos-list-item">
                    <iframe
                        src=<?= $src ?>"
                        title="YouTube video player"
                        frameborder="0"
                        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
                        referrerpolicy="strict-origin-when-cross-origin"
                        allowfullscreen
                        data-category="marketing" <?php // Complianz ?>
                    ></iframe>
                </li>
                <?php }; ?>

    Are we doing something wrong?

    Massive thanks in advance.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support daniub

    (@daniub)

    Hi!

    Regrettably, we regret to inform you that we were unable to promptly handle this matter, and we extend our sincere apologies for any inconvenience caused.

    We have observed that the Complianz plugin is not currently installed on the specified website, rendering us unable to investigate the issue at hand.

    If you are a premium user, we kindly request that you avail yourself of our support services by sending an email to [email protected].

    If you are a free plan user, you can still show us the issue you mentioned.

    Thank you for your cooperation

    Thread Starter kram09890

    (@kram09890)

    Hi! And thanks a lot ??

    I’ve just activated the plugin, since we were still trying to solve the issue.

    Does it help?

    Thread Starter kram09890

    (@kram09890)

    After working on it locally and seeing it wasn’t a template issue, we run the configuration wizzard again and it seems to work fine. Don’t have the clue because apparently it is the same config.

    Thanks for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘When cookies are accepted, YouTube iframe SRC switched to “null”’ is closed to new replies.