Skip Navigation

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

Problem:
The client experienced an issue where after adding Portuguese as an additional language in their WPML setup, the Spanish translation disappeared from the language selection on their site. This occurred after going to Languages --> Add/Remove Languages and adding Portuguese, resulting in only English and Portuguese showing in the language switcher on the front end.
Solution:
Upon further investigation and re-testing by the client, it was clarified that the issue was a misunderstanding. The language switcher was functioning correctly, displaying only the languages available for each specific page. The client had previously viewed pages that only had Portuguese translations available, hence why Spanish was not displayed. This was confirmed after the client re-added the languages and tested the functionality again.

If you're experiencing a similar issue, we recommend rechecking the language settings and ensuring that each page has the necessary translations. If the problem persists, it might be due to an outdated solution or a different issue. Please visit our known issues page, verify you have the latest versions of themes and plugins, and if needed, open a new support ticket at our 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 6 replies, has 0 voices.

Last updated by Itamar 1 week, 3 days ago.

Assisted by: Itamar.

Author Posts
January 1, 2025 at 4:01 pm #16557138

guyS-9

Thanks Itamar. That worked for most of of the widgets in the footer. It didn't work for the widget including Home, Articles, Privacy Policy and Refund Policy.
I added this widget to string translation and translated it, but yet it appears in English on the front end.

Another issue I encountered - I tried to add a page in an additional language (Portuguese). However, once I added Portuguese, the Spanish translation disappeared from the language selection (the flags).

January 1, 2025 at 4:11 pm #16557178

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

In this ticket, I'll help you with this issue:

Another issue I encountered - I tried to add a page in an additional language (Portuguese). However, once I added Portuguese, the Spanish translation disappeared from the language selection (the flags).

Please tell me the steps to replicate this problem?
In other words, what steps did you take that caused this problem?

I must add that I'm somewhat confused because currently, it looks like you deactivated the Portuguese (Brazil) language. I can see it in WPML -> Languages -> Site Languages. Please see the attached screenshot. Please explain what happened.

Regards,
Itamar.

2025-01-01_18-07-31.jpg
January 1, 2025 at 8:19 pm #16557468

guyS-9

Hi Itamar,
I removed the Portuguese because when I added it the Spanish wouldn't display in the language selection drop down.
Basically, I went to Languages --> Add/Remove Languages, I then selected Portuguese as an additional language (so I had three languages selected - English, Spanish, Portuguese). I added a page in Portuguese. After saving, only English and Portuguese were shown in the language switcher on the front end.

January 1, 2025 at 8:47 pm #16557500

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Thanks for providing those details.

This sounds weird. I'm unsure why such a problem would occur.

Do you have a staging site (a copy of your site on the same server) where I can enable the Portuguese language to see this problem and investigate this issue?

(I don't want to do anything on your live site if something goes wrong and breaks the site.)

Please share the access details with me if you have a staging site. I'm enabling a private message for the following reply.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --

Regards,
Itamar.

January 1, 2025 at 10:13 pm #16557537

guyS-9

Unfortunately I don't have access to the staging site.

January 2, 2025 at 11:20 am #16558444

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I can take a copy of your site and check this issue on another server.

If you need further help with this, please share the access details to your site with me and allow me to take a copy of your site. I must install a plugin like Duplicator or All In One Migration for this. Please let me know if you agree.

I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.

January 3, 2025 at 3:34 pm #16561895

guyS-9

Hi Itamar,
Login details are the same as for the previous ticket. Please go ahead and duplicate the site.
Thanks!
Guy

January 6, 2025 at 9:18 am #16565394

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I tried to install All-In-One Migration to take a copy of your site, but it failed. I also activated UpdraftPlus (it was installed but deactivated) to see if I can take a copy with it. But this caused a fatal error. (I immediately deactivated UpdraftPlus.) Please see the attached screenshots.

We need to take another approach to investigating this issue. I created a test site on our Cloudways server, which you can use to migrate your site. Then, I'll continue to check the problem there. See all the details in the following private reply.

Regards,
Itamar.

2025-01-06_10-51-23.jpg
2025-01-06_10-52-45.jpg
January 8, 2025 at 6:37 am #16572146

guyS-9

Hi Itamar,
I took the risk and tested it again. It seems that everything works fine. It was a confusion of mine. It would only display the specific languages available for each page. It seems that when I tested it last time I looked at pages which only had Portuguese translation, but didn't have any Spanish translation and, therefore, Spanish did not show up. We can close this ticket. Thanks for your help!

January 8, 2025 at 11:48 am #16573080

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

OK, I see. This indeed explains the issue.

I'm closing this ticket. Don't hesitate to contact us again with any WPML issues or questions.

Take care,
Itamar.