Skip Navigation

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

Problem:
The client is experiencing an issue where some translated pages are not resolving under their assigned language directories (/tw and /jp) but instead are stuck in the root directory. This occurs despite the WPML language switcher generating the correct URLs. The issue persists even after running several troubleshooting tools and is suspected to be due to stale slug-to-language mappings in WPML's internal rewrite rules following TRID repair work.

Solution:
We recommend refreshing WPML's internal rewrite rules to address the issue of stale slug-to-language mappings. This can be done by:
1. Navigating to WPML > Support > Troubleshooting.
2. Clicking on the 'Clear the cache in WPML' button to remove any stale data.
3. Clicking on 'Recreate ST DB cache tables' to refresh the database tables.
4. If the issue persists, manually resetting the permalinks by going to Settings > Permalinks in WordPress and re-saving the current settings.

If these steps do not resolve the issue, or if the solution seems 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. Additionally, you may open a new support ticket for further assistance 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 2 replies, has 0 voices.

Last updated by Andrey 1 week, 1 day ago.

Assisted by: Andrey.

Author Posts
June 25, 2025 at 4:44 pm #17170398
June 25, 2025 at 4:53 pm #17170435

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

I have started manually reconnecting pages and some are working fine but other are stuck in root directory instead of under their assigned directory (/tw and /jp). Below is where we are at.

Can you explain in detail how you did this? Please also show me this in the screenshots.

You can recreate the issue at /manufacturing/ page and select chinese or japanese and notice how the languages translate but in the root directory, even though the language switcher (on hover) generates the correct directory url.

What do you mean by "the languages translate but in the root directory"? Can you elaborate on this?

Following TRID and translation job repairs on our site, we are seeing the following situation:

How have the TRID and translation job repairs been done on your site?

We believe WPML’s internal rewrite rules are holding stale slug-to-language mappings after the TRID repair work. Can you help us with this?

Why do you think WPML’s internal rewrite rules are holding stale slug-to-language mappings? Have you changed anything in the database directly?

June 26, 2025 at 2:42 pm #17174298

yo-jenH

Hi Andrey
We can close out this branch of support.
I have been able to resolve the stuck pages.
Cleaned orphaned posts and used the translation management troubleshooting tools to eventually get a clean connection with the correct language directories.
Thank you for your help in this area

June 26, 2025 at 2:44 pm #17174302

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

I’m glad to hear everything is working now. Wishing you a great weekend ahead!