Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing an issue where CookieYes was blocking the 'wp-wpml_current_language' cookie, causing posts to load in the incorrect language after an Ajax call. This problem was occurring in Chrome and Edge browsers, but not in Brave.
Solution:
The client resolved the issue by deleting and then re-adding the cookie in CookieYes. This action corrected the language loading problem on the staging site. The client planned to apply the same fix to the live site and requested to keep the support ticket open for a day or so for further assistance if needed.

If you're experiencing a similar issue, we recommend trying the following steps:
1. Delete the 'wp-wpml_current_language' cookie in CookieYes.
2. Re-add the cookie in CookieYes.

This solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you need further assistance, please open a new support ticket.

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.

This topic contains 5 replies, has 2 voices.

Last updated by Carlos Rojas 1 year, 1 month ago.

Assisted by: Carlos Rojas.

Author Posts
March 12, 2024 at 11:38 am #15399187

studioB-2

Tell us what you are trying to do?

We are seeing an issue where CookieYes is blocking the wp-wpml_current_language cookie no matter whether the user has accepted or denied the cookies.

Strangely enough, this is seen only on Chrome and Edge, but Brave seems to work perfectly.

Is there any documentation that you are following?

I have researched both your support docs and CookieYes docs and couldn't find anything concrete.

Is there a similar example that we can see?

On our staging site

What is the link to your site?

The first 6 posts load in French which is correct, then Ajax loads the next 6, but these you will see load in English. We do have the Language Filtering for Ajax switched on.

hidden link

HTACCESS:

U: GuarantCo_Staging
P: 0uB1H8HKgqnprvyXzZg4

I can provide log in info if required.

Many thanks

March 12, 2024 at 11:47 am #15399209

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello,
Thank you for contacting us

I have visited hidden link and the posts load correctly in French after the Ajax call. Can you see the issue in incognito mode?

Regards,
Carlos

March 12, 2024 at 12:04 pm #15399287

studioB-2

Hi Carlos,

Typical, the last thing I tried while waiting for a response was to delete the cookie in CookieYes and re-add it. This seems to have solved the issue on the staging website.

I will apply this fix to the live site too, but if I need further assistance could we keep this open for a day or so?

March 12, 2024 at 12:47 pm #15399448

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

Sure. I will be waiting for your feedback.

March 15, 2024 at 8:36 am #15413138

studioB-2

Hi Carlos,

Thanks for the support, everything looks to be working.

Guy

March 15, 2024 at 11:18 am #15414071

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help.

Have an excellent day!