Skip Navigation

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

Problem:
The client is experiencing an issue where the WPML language switcher added to the footer with the shortcode

wpml_language_selector_widget

breaks the website instead of switching the language.
Solution:
1. Ensure that any redirection plugins are deactivated as they might interfere with the language switcher.
2. Perform a full backup of the website.
3. Deactivate any cache plugins that might be causing the issue, as confirmed by the client that deactivating these resolved the problem.
4. Check if the website and the language switcher function correctly after these adjustments.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, 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 further assistance is needed, please open a new support ticket at WPML support forum.

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 0 replies, has 0 voices.

Last updated by Oleg Tymoshchuk 1 month ago.

Assisted by: Kor.

Author Posts
March 3, 2025 at 9:28 am #16767587

Oleg Tymoshchuk

Background of the issue:
I am trying to switch the language using the WPML short switcher, which was added to the footer with the shortcode wpml_language_selector_widget. The issue can be seen on this page: hidden link

Symptoms:
The WPML short switcher breaks the website instead of switching the language. I expected to see hidden link.

Questions:
Why does the WPML short switcher break the website?
How can I fix the language switcher issue in the footer?

March 3, 2025 at 9:43 am #16767693

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Here is the ticket, I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

March 5, 2025 at 1:35 pm #16779067

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

When I switch to your other language hidden link using the language switcher, everything looks fine for me and it's speedy now.

I've attached a screenshot for your reference. However, I noticed that the posts section is empty and it's probably because you have not translated your posts yet.

Let me know how it goes for you.

Screenshot_348.jpg
March 6, 2025 at 8:10 am #16781671

Oleg Tymoshchuk

Hi Kor,

Thank you for your message.

Can you try it from incognito tab?

Because when I try it from incognito tab, the site does not work.

The same issue we have with our production website.

Regards,

Oleg

March 6, 2025 at 4:10 pm #16784635

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I've deactivated some cache plugins and it seems to be loading fine for me now. Could you confirm?

March 11, 2025 at 9:06 am #16800100

Oleg Tymoshchuk

Hi Kor,

Yes, it works. It means the issue in cache plugin.

Thank you very much, I will try to fix it.

Best,

Oleh

March 11, 2025 at 10:51 am #16800925

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. Alright then, you can mark this as resolved. If you have further issues, you can open a new chat/ticket

March 12, 2025 at 7:27 am #16805161

Oleg Tymoshchuk

Kor provided excellent support. Thank you very much!