Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 -

Supporter timezone: Europe/Madrid (GMT+02:00)

This topic contains 60 replies, has 0 voices.

Last updated by Carlos Rojas 20 hours, 39 minutes ago.

Assisted by: Carlos Rojas.

Author Posts
September 23, 2025 at 10:55 am #17424638

Carlos Rojas
WPML Supporter since 03/2017

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

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

Thank you for your clarification.

I ran several troubleshooting steps, but the issue persists, even in a minimal setup. I would like to ask your authorization to create a copy of the site to send it to our 2nd tier of suppor,t where our specialists will take a deeper look.

September 23, 2025 at 10:58 am #17424699

rhettY

Can you do it on the test site? You can run any test and modify anything there.

September 23, 2025 at 12:22 pm #17425062

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi, I already ran all the possible tests on the staging site. My colleagues on the 2nd-tier need a copy of the site to run further tests in a controlled environment, which is the reason why we need a copy.

September 23, 2025 at 12:34 pm #17425147

rhettY

Ok. I have no choice. Please go ahead

September 24, 2025 at 7:32 am #17427633

rhettY

Hi Carlos,

Please let your 2nd tier team check this ticket: https://wpml.org/forums/topic/language-switcher-will-open-to-unexpected-page/

This bugs me for some time.

September 24, 2025 at 7:58 am #17427801

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi there,

I have escalated this ticket to our 2nd tier of support, where our specialists will take a deeper look at this issue and will try to find a solution.

I will get back to you as soon as I get more information.

September 24, 2025 at 9:15 am #17428151

rhettY

Thanks.

You may have your team check this ticket too: https://wpml.org/forums/topic/php-fatal-error-uncaught-invalidargumentexception-4/

It's not solved yet:
1. sitekey not found, though I've unregistered and re-registered several time.
2. PHP Fatal error: Uncaught InvalidArgumentException: Argument $language_code must be a non empty string.

September 24, 2025 at 9:15 am #17428152

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi,

Please disable the cache memory and contact your hosting providers to disable any cache memory that might exist on the server-side. Then double-check if the issue persists and let me know, so we can run more tests with the cache memory disabled.

September 24, 2025 at 9:36 am #17428245

rhettY

Just disabled all cache memory in racinghobby.com site. The currency switcher issue disappears. Please check.

Cache is important for my site. Please solve the issue.

September 24, 2025 at 9:38 am #17428246

Carlos Rojas
WPML Supporter since 03/2017

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

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

Thank you for your message.

Please add the admin-ajax.php to the cache exclude list in the LiteSpeed settings and check if the issue disappears.

September 24, 2025 at 9:51 am #17428365

rhettY

I added admin-ajax.php in cache -> excludes -> Do Not Cache URIs. And enabled all cache memory. The issue comes back. The flags also do not display. Formerly after disabling cache, they display

September 24, 2025 at 9:55 am #17428397

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi,

As described in the Litespeed settings, you must add the URIs, not the name of the file. I recommend contacting the support service of Litespeed to correctly exclude the admin-ajax.php file

September 24, 2025 at 10:01 am #17428404

rhettY

Please check this file: hidden link

I modified it to "/admin-ajax.php". This should be the correct setting.

September 24, 2025 at 10:22 am #17428609

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi,

I created a quick video: hidden link showing that the currency switcher is working now and recommending some steps to fix the flags issue

September 24, 2025 at 10:35 am #17428658

rhettY

I noticed you also need to click twice the default currency. Please check. In fact

I've figured out a way to solve the flag display issue. I excluded the media by adding the media classes in the media cache exlusion in litespeed.