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 is split from https://wpml.org/forums/topic/i-cannot-install-and-use-wpml-after-upgrading-to-multilingual-agency-subscription-installer-does-no/