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.
After uploading and enabling the theme , there are some error occured so i have to upload the theme again after removing the peice of dependency from the theme. Can you please disable the theme so i can upload it again or I can provide the zip file of theme.
I've uploaded the Permalink Manager plugin and modified the permalink structure. However, after creating a new page in English and attempting to open it in French or another language, I get a "Page Not Found" error instead of the expected fallback page.
"hidden link"
Additionally, I've uploaded the theme but haven't activated it yet.
For creating a new page , it is working fine in our environment as well.
we have created the same environment as our staging environemt so you can enable and disable the plugins as per your need. please provide private links so i can provide the links and credentials.
We are facing the 404 page for fallback in our existing migrated content so can you please help us regarding this issue.
I am also facing another main issue is like when i am on page "hidden link"
in this german page , there is a link "VHS-Systeme mit hoher Dehnrate" into the page. so this linked page ( VHS ) is available in only english and chinese langauge , but when i click on this link it is redirect to "chinse language(zh-hans)" page. means default fallback pages not working, it should open the page in German(de) url with english content.
Our 2nd tier support team has found a workaround for the issue. I tried to activate your theme to apply it, but after activating it, there has been a fatal error. (hidden link)
Please activate your theme and permalinks manager plugin and let me know.
Here is the workaround if you want to test it by yourself:
1- Edit the (/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-query-parser.php) file
2- Replace the code in line 419