Skip Navigation

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

Problem:
The client is unable to switch from the Dutch version to the French version on the homepage of their multilingual site using the WPML language switcher. The switcher works on other pages but not on the Dutch homepage.
Solution:
We recommend trying the following steps to identify and resolve the issue:
1. Deactivate all plugins except for WPML CMS.
2. Temporarily switch to a default WordPress theme, such as Twenty Twenty-One.
3. Check if the language switcher issue on the homepage is resolved.
Please ensure to back up your database before performing these steps.
The issue was caused by the cache in the "Object Cache Pro" plugin.

If this solution does not resolve your issue or seems outdated, please visit our known issues page and check for any related issues. Also, verify that you have the latest versions of themes and plugins installed. If the problem persists, we highly recommend opening a new support ticket with us 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.

This topic contains 1 reply, has 0 voices.

Last updated by martijnS-12 3 days ago.

Assisted by: Osama Mersal.

Author Posts
February 19, 2025 at 10:28 am #16723511

martijnS-12

Background of the issue:
I am trying to use the language switcher on my staging site: hidden link. The site is in Dutch and there is also a French version: hidden link. The language switcher works on all pages where there is a French translation, such as hidden link and its French version hidden link. However, it doesn't work on the Dutch homepage: hidden link

Symptoms:
The language switcher doesn't work on the Dutch homepage. It works if you are on the French version (you can go to the Dutch version), but you can't switch from the Dutch version to the French version. I expected that selecting the French flag on the homepage would switch to the French version: hidden link, but instead, it stays on the Dutch version.

Questions:
Why doesn't the language switcher work on the Dutch homepage?
How can I fix the issue of not being able to switch from the Dutch version to the French version on the homepage?

February 19, 2025 at 2:39 pm #16725293

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Could you please check if the issue persists in a minimal environment by following these steps?

1- Deactivate all the plugins except WPML CMS.
2- Switch for a moment to a WordPress default theme like Twenty Twenty-one.

If the issue is gone, activate them one by one to see which one is causing an interaction issue.

❌ Please backup your database before performing the above test ❌

Best regards,
Osama

February 19, 2025 at 7:41 pm #16726613

martijnS-12

Ok I solved it, but don't know how.
I switched off all the plugins, the problem was gone.
I turned them back on one by one.
And it was still gone.
Maybe it was the plugin "Object Cache Pro", because I also cleared the cache on that one.
Forgot I had that plugin.
So I think it was the cache in "Object Cache Pro" plugin