Skip Navigation

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

Problem:
The client was facing an issue where products available in only one language were still showing the language selector for other languages. When trying to access the URL directly or clicking the language selector, a 'Too many redirects' error occurred.
Solution:
We suggested checking the WPML > Settings > Post Type Translation to ensure that "Products" was set to "Translatable – use translation if available or fallback to default language". If the setting was already correct, we recommended toggling it off and on again, as this resolved the issue for the client.

If you're experiencing similar issues, we recommend checking your WPML settings and ensuring they are configured correctly. If the problem persists, it might be due to an outdated solution or a different underlying issue. We highly recommend visiting related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If none of these steps work, 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.

This topic contains 3 replies, has 2 voices.

Last updated by Andreas W. 1 month ago.

Assisted by: Andreas W..

Author Posts
March 12, 2025 at 8:16 pm #16809144

gustavG-2

Background of the issue:
I am trying to ensure that products available in only one language do not show the language selector for other languages. When I click the language selector or try to access the URL directly, I encounter an issue. The issue can be seen on this page: hidden link. I expected the URL not to exist and the English link on the Swedish version to be hidden. This is the Swedish version: hidden link.

Symptoms:
I got an error page with a 'Too many redirects' error.

Questions:
Why is the language selector visible for products available in only one language?
How can I prevent the 'Too many redirects' error when accessing certain URLs?

March 13, 2025 at 7:34 am #16810052

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

Hello,

Could it be that at WPML > Settings > Post Type Translation you have set "Products" to use "Translatable – use translation if available or fallback to default language"?

If so, please change the setting to "Translatable – use translation if available or fallback to default language".

If this does not clarify the cause of the issue, please let us know.

Best regards
Andreas

March 13, 2025 at 1:47 pm #16812224

gustavG-2

The settings was "Translatable – use translation if available or fallback to default language" so I swithed and then switched back and now it works. Why did this happen?

March 15, 2025 at 2:24 pm #16819957

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

Honestly, this is the first time I hear that this occurs but I am glad to hear that you found a solution.

In case this issue will occur again, please let us know.