[Resolved] Content disprea after the visitor clicks on
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue where YouTube videos displayed using 'Presto Player' disappear in some languages after visitors click on 'Accept all Cookies'. This problem was identified to be associated with WPML after disabling other plugins. Solution: We recommend the following steps to isolate and potentially resolve the issue: 1. Ensure that the 'Video Problem Test' page is translated into all languages on your sandbox site. 2. Switch the theme on your staging site to the default WordPress theme (e.g., Twenty Twenty-Four) and deactivate all third-party plugins except for WPML, Strings Translation, 'Presto Player', and 'Real Cookie Banner'. 3. If the issue does not persist under these conditions, reactivate the original theme and then each plugin one by one. This step-by-step approach will help identify if a specific theme or plugin reintroduces the problem.
If these steps do not resolve the issue or if it appears complex, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please do not hesitate to open a new support ticket at WPML support forum for further assistance.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
We are using 'Presto Player' to display our YouTube videos on the website, and 'Real Cookie Banner' to manage our GDPR & ePrivacy Cookie Consent. We have a problem with videos disappearing and being hidden after our visitors click on 'Accept all Cookies'. We have talked with both of their teams and after we came to no conclusion we started disabling plugins and it turns out the problem somehow comes from WPML. We have 10 languages, and we tested the problem and it is not the same in all the languages. To check the problem please open this page in all the languages and be sure to 'Accept all Cookies': hidden link
Symptoms:
The videos disappear in some languages and remain visible in others after visitors click on 'Accept all Cookies'.
Questions:
Why do videos disappear in some languages after clicking 'Accept all Cookies'?
How can we fix the issue of videos disappearing in certain languages?
This ticket has been inactive for quite a while. I didn't get a reply from you. So, I've transformed this chat into a support ticket because you may still need our help. If you do, please reply to this ticket, and one of our supporters will continue helping you.
Can you please confirm you have read and followed the instructions of the Real Cookie Banner plugin on how to work with WPML?
hidden link
Especially take notice of this.
If you install WPML or Polylang into an existing website that already uses Real Cookie Banner, you should deactivate Real Cookie Banner briefly and then reactivate it to initialize the plugin for all languages.
So, my suggestion is to activate WPML. Then, temporarily deactivate the Real Cookie Banner plugin and activate it again.
Hi, thanks for making a ticket,
Yes, we have done it recently and before and these 3 plugins have been working for the past 2 years without any problem Something happened recently that made things stop working.
Since I have to go now I will follow this up tomorrow.
Thanks, and have a nice day
If my suggestion does not help, it is essential to ensure that there is a compatibility issue between the WPML 'Presto Player' and the 'Real Cookie Banner' plugins. There might be another third-party plugin involved. So please check if things are working when only WPML, Strings Translation, 'Presto Player' and 'Real Cookie Banner' are active.
I have tried it and yes the problem is still there I have disabled all the unessential plugins for the page we use as our test subject (hidden link) and the problem is still there.
The enabled plugins as necessary for the page to show up normally.
I just realized that in our "Content Blocker," of the "Real Cookie Banner plugin" we just have one YouTube when we disable the WPML we have multiple other content blockers! (Look at the screenshot I attached)
Can this be the cause of the problem?
Too many plugins are involved, and we need to replicate this issue on a clean WordPress site with only WPML, Strings Translation, Presto Player, and the Real Cookie Banner plugins. Then, I'll be able to escalate it to our compatibility team. For this, I created a test website with a clean WordPress install. You can access it through this link:
hidden link
With this link, you'll be directly logged in.
Could you please install the plugins (Presto Player, Real Cookie Banner) involved and see if the issue is replicable on a clean WordPress installation?
Please configure WPML as on your site (just the basic configurations needed to replicate the issue are enough). Please also ensure you install the latest version of the plugin. When everything is finished, and you can replicate the problem, please let us know. Important! Do not import your site to the test site. We must replicate the problem on a fresh, clean WordPress installation.
You wrote:
I just realized that in our "Content Blocker," of the "Real Cookie Banner plugin" we just have one YouTube when we disable the WPML we have multiple other content blockers! (Look at the screenshot I attached)
Can this be the cause of the problem?
You probably get this behavior because once you disable WPML, all the pages become the site's default and only language.
I'm also consulting our second-tier supporters about this case. This does not look like a WPML issue. I say it because it works in some of the languages.
Hi again,
I have tried to create the same condition but Some features of the real cookie banner were locked because we don't have a license:
-Consent for data processing in unsecure third countries
we have it on "Enabled" on our website
-Geo-restriction
we have it on "Disabled" on our website
-Transparency and Consent Framework (TCF)
we have it on "Disabled" on our website
-Google Consent Mode
we have it on "Enabled" on our website
-Consent Forwarding
we have it on "Disabled" on our website
and more...
The problem is not showing up on the page I created! hidden link
What I realized is that some languages don't have this part in the real cookie banner setting and they are the languages that the problem is not happening to them!
Please test it on our staging and check the screenshot. hidden link
You didn't translate the Vide Problem Test page on the sandbox site, so I translated it into all the languages. The problem still does not occur on the sandbox site, and the Content blocker is translated into all the languages.
I still suspect another third-party plugin or the theme to be the culprit on your staging site. Please check if the issue persists when the theme is switched to the default WordPress theme Twenty Twenty-Four and all the third-party plugins are deactivated. Only leave active WPML, Strings Translation, 'Presto Player', and 'Real Cookie Banner' plugins. If the issue does not persist, then activate the theme and check and then the other plugins and check when the problem returns.
Hello, and good day, I have checked more with another theme.
The problem was still visible so I have disabled more plugins, and I figured out that as soon as we get rid of font awsome the problem is solved!
Hello, I have added the font awesome and tried it, but the video loads with no problem on the sandbox, I am in touch with the presto player team to see if they have any solution or not!
Thank you