Skip to content Skip to sidebar

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

Problem:
The client was unable to see the language switcher on the English version of the front page, and when clicking the logo, they were redirected to the Dutch 404 page. The client had already tried duplicating the page with Yoast Duplicate Post as suggested by another supporter, but the issue persisted.

Solution:
We recommended the following troubleshooting steps to try and reconnect the translation to the page:
1. Make a full backup of the website.
2. Navigate to WPML > Support and click on the Troubleshooting link.
3. Click on the following buttons:

  • Clear the cache in WPML
  • Remove ghost entries from the translation tables
  • Fix element_type collation
  • Set language information
  • Fix WPML tables collation
  • Assign translation status to duplicated content
  • Fix terms count
  • Fix post type assignment
  • Cleanup and optimize string tables

After performing these steps, we asked the client to check if the translation appeared.

Please note that the solution provided might be outdated or not applicable to your case. If the issue persists, we highly recommend checking the related 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 continues, please do not hesitate to open a new support ticket with us.

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

Last updated by Lucas Vidal de Andrade 1 year, 4 months ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
March 4, 2024 at 5:06 pm #15371509

glennB-5

I am trying to: View the translated (English to Dutch) front page.

Link to a page where the issue can be seen: hidden link

I expected to see: The frontpage in English with the language switcher to the right of the menu.

Instead, I got: No language switcher on the English frontpage. When I browse to any of the other pages, the language switcher is visible but the frontpage is not reachable. When clicking the logo you are redirected to the Dutch 404 page.

I have had an onboarding meeting today with Christopher and we discussed this issue. He suggested I install Yoast Duplicate Post and try to manually duplicate the page. I have now tried this and it does not solve the problem.

All other translated pages show.

I have gone through all templates and made sure they are translated.

I think there is a mismatch in the db since the "status field" for pages show 17 published pages and 1 draft, but when I click on the draft, there are none in the list.

Would be very happy for help to sort this out.

Kind regards,
Glenn

Status Pages Drafts.jpg
Status Pages.jpg
Dutch translation not showing.jpg
March 4, 2024 at 6:40 pm #15371740

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Thank you for getting in touch with us. I analyzed the information you've sent and the page in question is not translated to Dutch, as we can still see the "+" sign there.

Please complete the translation and let me know if the page works as expected. By default, when there's no translation available, WPML hides the language switcher. That's also the reason that, when visiting the translation via other pages, you get to a 404.

March 4, 2024 at 7:14 pm #15371755

glennB-5

Hello Lucas,
I agree, it seems the page is not translated. But in fact, when you click on the plus and enter the editor, it states that the translation is complete, as in the attached screenshot.

The translated page is NOT found under Pages. The list states that there is one page in draft but it you cannot see it. Could it not be that if we could find this draft and change it to published, The problem would be solved?

Translation Complete.jpg
March 5, 2024 at 10:54 am #15373797

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Thank you for sharing, I see the issue now. Let's try running the WPML troubleshooting steps, to see if we can reconnect the translation to the page.

1. Make a full backup of your website
2. Go to WPML > Support and click on the Troubleshooting Link (see image)
2. Now, click on the following buttons
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables

Check the translation again, to see if it's there. May that not be the case, please let me know.

Support _ Sandbox _ WordPress.jpeg
March 5, 2024 at 5:14 pm #15375802

glennB-5

Thanks Lucas,

This solved my problem 🙏

Kind regards,
Glenn