This thread is resolved. Here is a description of the problem and solution.
Problem: You are working on a development site and encountering an issue where certain links do not fall back to the default language on the German version of the page, resulting in a 404 error. Some links like 'ASTM C365' correctly fall back, but others like 'ASTM C109' and 'ASTM C170' do not. Solution: We recommend you apply the following workaround to address the fallback issue: 1. Edit the file at
3. After line 458, add a new function to handle the page path and post type processing more effectively. This function also includes improved caching mechanisms and SQL queries to ensure correct page retrieval based on the language settings.
After implementing these changes, please verify if the language switcher functions as expected.
If this solution does not resolve your issue or seems irrelevant due to updates or differences in your setup, 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. If problems persist, 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.
Background of the issue:
I am working on a development site for hidden link and trying to ensure that the fallback functionality works correctly for pages using WPML. Specifically, I am testing the fallback behavior for links that exist only in English when accessed from the German version of the page.
Symptoms:
On the page hidden link, the links 'ASTM C109' and 'ASTM C170' result in a 404 error when accessed from the German version, while 'ASTM C365' correctly falls back to the default language.
Questions:
Why do some links not fall back to the default language and result in a 404 error?
How can I ensure consistent fallback behavior for all links on the site?
Please let me know the steps to reproduce the issue.
2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me much information about how your site is configured.
Please check this below links
here english page is working for below links but spanish . italian , french etc no working.
hidden link hidden link
above both pages are not availabe in spanish , Italian language and when we move to that language we got 404 page, which should not be. There should be fallback needs to work on the above pages.
We have many more pages with the same behaviour with diferent languages.
Thanks for your reply. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Preferably to a test site where the problem has been replicated.
Your answer will be private, meaning only you and I can access it.
❌ Please backup your database and website ❌
✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.
✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.
We are facing another issue when opening the link: hidden link. Within the content, there is a link to "Testing Systems." Although we are on the English version of the page and the link should be in English, it appears in Portuguese (pt-br) in the browser. However, when we open the page in Beaver Builder, the link is correctly set to English.
Additionally, on this page, there is another link labeled "Universal Testing Machine," which is incorrectly set to the Thai (th) language.
Please investigate these issues and provide resolutions in this thread as well as the previous one.
Thanks for the access details. I'll focus on the first issue and then check the 2nd one.
When editing a post, the language side panel doesn't show the languages. (Kindly check the attached screenshot)
I want to run the minimal installation test, so I tried using the Duplicator Pro and All-in-One Migration plugins to create a copy of your site. However, both plugins failed due to a server error.
Please provide a snapshot of your site, including the files and database, except for the uploads folder.
I am uploading database which contains staging urls so need tomake according changes and Files. so how can i put links which will be hidden. please provide that so you can download it
Thanks for the package. I installed a local copy of your site and found the issue was caused by the "Permalink Manager" plugin.
Please try the following: deactivate the permalink manager plugin and activate the Twenty Twenty-One theme. After that, please check if the language switcher and fallback function works as expected.
If the function works correctly, please activate the "Permalink Manager" plugin and check the fallback function.
The Permalink Manager plugin is essential for maintaining our URL structure alongside WPML and Beaver Builder. After disabling it, the URL structure no longer functions as expected, resulting in multiple 404 errors across the site. and we have to maintain the same url structure as per our current live site.
Additionally, we noticed an issue where a different language appears within the URL of an English page. For example, on this page: hidden link, the 6800 Series page is linked incorrectly in a non-English language.
Could you please advise on how to resolve this? We are preparing for the site launch soon and need a fix urgently.
The combination of your custom theme and the Permalinks Manager plugin causes the issue.
Please log in to this hidden link">sandbox site and install only the permalinks manager plugin and your theme. After that, please check if the issue is replicable.
If the issue is replicable, please let me know so I can check it and consult our 2nd tier support team.
Kindly note that the fallback function works correctly on the sandbox site. Please visit this hidden link">page to check it.