Skip Navigation

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

Problem:

The client reported that the EN flag switcher was not functioning correctly at all times.

Solution:

We identified that the issue was due to a conflict with the WPML switcher snippet. We recommended the following steps:

1. Disable the WPML Switcher snippet.
2. Clear all types of caches, including server, browser, and plugin caches.
3. Visit Settings >> Permalinks in the WordPress dashboard and resave the settings.

Additionally, if the site is hosted on One.com and uses Hostinger must-use plugins, we advise:

1. Remove the Hostinger MU plugins from

/wp-content/mu-plugins/

.
2. Clear all types of caches again.
3. Check if the issue is resolved.

If these steps do not resolve the issue or if the solution becomes outdated, 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 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.

Tagged: 

This topic contains 18 replies, has 0 voices.

Last updated by jeffreyB-17 4 days, 8 hours ago.

Assisted by: Bigul.

Author Posts
June 12, 2025 at 11:02 am #17129673

jeffreyB-17

The EN flag switcher, why isn't that working properly all the time?

Thanks for the fast response this time. I appreciate you working on it.

Jeffrey

June 12, 2025 at 7:14 pm #17131309

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Jeffrey,

Welcome to the WPML support forum. I will do my best to help you resolve the issue.

The language switcher was not working as expected due to a conflict with the WPML switcher snippet. It is now functioning correctly after disabling the snippet. Please clear all caches and check again to confirm everything is working as expected.

--
Thanks!

Bigul

2025-06-13_00h10_59.png
June 13, 2025 at 7:32 am #17131956

jeffreyB-17

Hey Bigul, that doesn't seem to work yet. On hidden link the switcher still isn't working properly.

Look here: hidden link

June 13, 2025 at 8:07 am #17132020

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. I forgot to mention that I tested this on the staging site.

Could you please check whether the issue still exists on the staging site as well? That will help us confirm if the problem is consistent across environments.

--
Thanks!

Bigul

June 13, 2025 at 8:13 am #17132050

jeffreyB-17

Hey Bigul,

First of all, thanks for replying so fast every time, I really appreciate it. And indeed, on the staging site the issue is gone. So what do we have to do to get this done at the main site?

Thanks.

Jeffrey

June 13, 2025 at 8:59 am #17132325

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Jeffrey,

Thank you for the updates. Please try the following steps on the live site:

- Disable the WPML Switcher snippet
- Clear all types of caches (server, browser, plugin, etc.)
- Visit Settings >> Permalinks, and resave the settings.

After that, check whether the issue still exists. Refer to the attached image for more details.

--
Thanks!

Bigul

2025-06-13_00h10_59.png
June 13, 2025 at 11:25 am #17133098

jeffreyB-17

But how do I clear server caching? Tried it but doesn't work. Could you please apply these things?

June 13, 2025 at 4:12 pm #17134176

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Jeffrey,

Thank you for the updates. Please contact the hosting service provider to clear the server-side caches, as this depends on the server settings.

In the meantime, please open the live site in Chrome Incognito mode and check if the issue still exists.

--
Thanks!

Bigul

June 16, 2025 at 9:02 am #17137560

jeffreyB-17

Hey Bigul, I did all this but the problem still occurs. What's going on here and can you please try to fix this?

June 16, 2025 at 11:11 am #17138318

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Jeffrey,

Thank you for the updates. Just to confirm, are both the live site (hidden link) and the staging site (hidden link) hosted on the same server?

Have you consulted your hosting provider regarding the cache settings? Because the issue now exists only on the live site.

Please upgrade all plugins on the live site to their latest versions after taking a full site backup, and then check if the issue persists.

--
Thanks!

Bigul

June 16, 2025 at 1:41 pm #17139005

jeffreyB-17

It's not on the same hosting, no. The staging site is on a Hostinger server and the other one on a One.com server. But One.com works with a Performance Cache plugin which I already tried. Server-side there are no options other than the File Manager which I can use to clear anything. But I don't know what.

I've indeed consulted the hosting but above is what they say.

I've upgraded all plugins on the live site and made a full site backup, the issue still persists.

June 16, 2025 at 3:04 pm #17139683

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Jeffrey,

Thank you for the feedback. This issue may be caused by a compatibility conflict. To help us confirm, please try the following steps if possible:

a) Backup your site first[Mandatory]
b) Switch for a moment to a WordPress default theme like 2025
c) Deactivate all the plugins that are not related to WPML
d) Then check whether the issue exists or not
e) If the issue is gone, activate the plugins as a group of three or four to find which one has an interaction issue
f) Switch back to the original theme of the site

--
Thanks!

Bigul

June 16, 2025 at 3:09 pm #17139688

jeffreyB-17

Hey Bigul,

Thanks but this feels like you're pushing it off to me. I did all the above but it still doesn't work. No step you talked about is working.

I think this problem is different then you said before so can you please check again for a fix?

Thanks.

Jeffrey

June 16, 2025 at 4:01 pm #17139852

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Jeffrey,

Thank you for the updates. I requested these steps to make sure the bug exists on the live site in a minimal setup, because it is working fine in the staging site: hidden link

Have you switched to a default 2025 theme after deactivating all other plugins except Elementor?

--
Thanks!

Bigul

June 17, 2025 at 8:39 am #17141390

jeffreyB-17

Yes, I've tried that already and it's not working. I've tried everything actually.