-
AuthorPosts
-
April 7, 2022 at 9:53 am #1347515
I have a problem with a youtube video on the page: https://www.spreewald-luftaufnahmen.de/drohnen-aufnahmen-firma/
It was added with a thumbnail but won’t play. On my other website is exactly the same video with the same link and it works: https://www.sgl-concept.de/werkstatt/
I have already checked the wordpress versions, everything is identical. The code looks like it is incomplete. Can you tell me why a script is written? The code seems incomplete since the <div is started but not completed.
The script:
<script type=”text/html” class=”av-video-tmpl”>
<div class=’avia-iframe-wrap’>
<iframe title=”SGL – Concept GmbH | Virtuelle Tour mit Drohne 4K | Spreewald Luftaufnahmen” width=”1500″ height=”844″ src=”https://www.youtube.com/embed/MN8fRjOeROQ?feature=oembed&autoplay=1&loop=0&controls=1&mute=1″ frameborder=”0″ allow=”accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture” allowfullscreen>
</script>the text is also under the video, but this should be next to it.
Thank you and best regards!
April 8, 2022 at 11:13 am #1347690Hey noellmn,
Thank you for the inquiry.
Looks like you have to manually allow access to the Youtube video by clicking the usercentrics (UC) button in the modal box as shown in the screenshot below.
Best regards,
IsmaelApril 11, 2022 at 3:32 pm #1347971Hello,
this popup window of UC is unfortunately not displayed with me. I’ve already tried it on three computers but it’s not visibleBest regards,
NoelApril 11, 2022 at 3:42 pm #1347973Hello,
Can you play the video on the page: https://www.spreewald-luftaufnahmen.de/drohnen-aufnahmen-firma/ if you accept the coockies ?Best regards,
NoelApril 12, 2022 at 7:03 am #1348040Hi,
Thank you for the update.
The site or the script stores a lot of cookies in the site when we click the accept button but the modal window doesn’t close and we are still not allowed to play the video. Did you install the usercentrics (UC) plugin? Is it working correctly when the plugin is disabled?
Best regards,
IsmaelApril 12, 2022 at 7:33 am #1348046Hello,
no, I don’t have a plugin, I have inserted a code into the child theme. The code was generated by E-Recht (see other support topic).Best regards,
NoelApril 13, 2022 at 4:26 am #1348168Hi Noel,
Thank you for the info.
Is it working correctly when you use the default Video element from the Advance Layout Builder? Unfortunately, we are not familiar with E-Recht and the usercentrics button is definitely not generated by the theme, additional help or info from the script authors should help.
Best regards,
IsmaelApril 13, 2022 at 8:08 am #1348193Hello Ismael,
i just removed the whole cookie query from the code. theoretically the video should then work, but it didn’t. Then the problem can’t really be with usercentrics, can it?
I also tested the cookie query on the website where it works and all the settings are the same.Best regards,
NoelApril 15, 2022 at 3:50 am #1348470Hi,
What do you mean by “cookie query”? Looks like a script is embedding the UC button to the video element but we are not sure why it is not working. We can’t find any errors in the page or in the browser console. The video loads fine only when we clicked the Akzeptieren button in the UC consent banner. Please contact the script authors for additional info.
Best regards,
IsmaelApril 15, 2022 at 9:55 am #1348487Hi, I mean that I removed the entire coockie script from the page and didn’t load it even then. So UC was thus completely removed for a short time and yet the video could not be played.
Best regards,
NoelApril 18, 2022 at 4:49 am #1348662Hi,
I mean that I removed the entire coockie script from the page
Did you remove the cache after removing the script? You can also check the site on incognito mode after editing the site.
Where did you add the cookie script? We tried to edit the page but we didn’t find the script anywhere in the editor.
Best regards,
IsmaelApril 18, 2022 at 9:58 am #1348669Hello,
Yes, I did that. I even took other devices to check it. But it didn’t work for anyone. The code was stored in the child theme. I also don’t know why I can’t retrieve the script of the individual page anymore, it’s been the case for quite a while that when I want to switch from the frontend editor, the code is just empty.Best regards,
NoelApril 18, 2022 at 5:54 pm #1348706Did you check for the console log file f.e.
A-Frame:warn Put the A-Frame <script> tag in the <head> of the HTML *before* the scene to ensure everything for A-Frame is properly registered before they are used from HTML.
I would test that on deactivating all Plugins. (Espacially Autoptimize) – refreshing all cache – and look if that helps. After that reactivating one by one.
April 19, 2022 at 10:26 am #1348752Hi,
We deactivated the WP Super Cache and Autoptimize plugin and disabled this code in the functions.php file temporarily. The consent modal box is no longer displaying and the video is now working as expected.
function noellmn_add_erecht24_code() { ?> <script type="application/javascript" src="https://app.usercentrics.eu/latest/main.js" id="7bx8tGQDy"></script> <script type="application/javascript" src="https://privacy-proxy.usercentrics.eu/latest/uc-block.bundle.js"></script> <link rel="preconnect" href="//privacy-proxy.usercentrics.eu"> <link rel="preload" href="//privacy-proxy.usercentrics.eu/latest/uc-block.bundle.js" as="script"> <?php } // add_action('wp_head', 'noellmn_add_erecht24_code');
You may need to contact the usercentrics team for additional info about the script.
Best regards,
IsmaelApril 20, 2022 at 7:56 am #1348888Hi Ismael,
unfortunately, that was the wrong website you edited. On the website http://www.sgl-concept.de it worked from the beginning, the problems are on the website of http://www.spreewald-luftaufnahme.deBest regards,
NoelApril 20, 2022 at 8:12 am #1348889Hi Guenni007,
the funny thing is that the plugins are identical on both websites and were set up identically, but it only works on one. I would therefore rule out that it is due to the plugins. And if I’ve removed the cookie query and all associated settings from the website, but it still doesn’t work, it can’t be due to Usercentrics either.Best regards,
NoelApril 20, 2022 at 9:44 am #1348896And for example – you are loading jQuery in both installations on the same place? Or do you load on the one in the header section and the other in footer?
sometimes you don’t think about tiny differences, but they can have a big impact. – What about the php versions of the two installations? Also identical?April 20, 2022 at 10:09 am #1348901Hallo Guenni007,
ja, es ist tatsächlich alles identisch. Ich habe noch mal alles geprüft. Beide Codes sind identisch und wurden an derselben Stelle der jeweiligen Website eingefügt. Die Plugins, die PHP Version sowie der Hoster sind ebenfalls gleich.April 25, 2022 at 4:00 am #1349319Hi,
Sorry for the confusion. We deactivated some of the plugins temporarily (cache, compression) and tried to load a different video, but it’s still not working. We also disabled the UC script from the functions.php file to no avail. Can we deactivate all plugins temporarily?
Best regards,
IsmaelApril 25, 2022 at 10:47 am #1349368Hello,
You can try it, but I don’t think that will help that much, I’ve already tried it. But it would be good if you didn’t disable Yoast SEO, Back WP Up And Really Simple SSL.I have already considered whether it might be due to the child theme.
Best regards,
NoelApril 28, 2022 at 6:54 am #1349752Hi,
The video loads fine when we deactivate all plugins, except for the ones you mentioned above, and when we disabled the usercentrics script in the functions.php file. We kept the plugins and scripts temporarily disabled so that you can see the result. Please make sure to purge the cache and remove the browser history.
This is a screenshot of the page containing the video: https://1drv.ms/u/s!AjjTfXSRbKTvwGJ3atJFYLh7bIuR?e=JC2qTO
Thank you for your patience.
Best regards,
IsmaelApril 28, 2022 at 9:43 am #1349776Hello,
thank you for your help. I have now gradually reactivated all plugins and also reactivated the usercentrics query and it works. I don’t know what could have caused it, do you have an idea what the problem was?I’m glad it works! :)
Best regards,
NoelApril 30, 2022 at 3:54 pm #1350053Hi,
Glad to hear that you have this sorted out, it sounds like a caching issue, shall we close this then?Best regards,
MikeMay 4, 2022 at 11:54 am #1350452Hi,
Yes, the case can be closed!Best regards,
NoelMay 4, 2022 at 1:42 pm #1350477Hi,
Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard -
AuthorPosts
- The topic ‘Youtube Video doesnt run’ is closed to new replies.