[Resolved] Translated pages have sometimes a 404 Error
This thread is resolved. Here is a description of the problem and solution.
Problem: You are experiencing 404 errors on translated pages of your website. The error temporarily resolves after saving the permalink settings twice but reoccurs after navigating other pages. Solution: We recommend the following steps to permanently resolve the 404 error on translated pages: 1. Navigate to WPML -> Settings -> Post Types Translation. 2. Expand the option 'Set different slugs in different languages for Trainingen'. 3. Translate the slug to your desired languages, for example, DE (ausbildung) and EN (training). This should resolve the issue of 404 errors on translated pages.
If this solution does not apply to your case, or if it seems outdated, 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 the issue persists, please do not hesitate to open a new support ticket at WPML support forum for further assistance.
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 trying to visit the link hidden link but encounter issues.
Symptoms:
Translated pages sometimes show a 404 Error. The error resolves temporarily after saving the permalink settings twice, but reoccurs after visiting other pages. I have cleared the Elementor and Theme Cache.
Questions:
Why do translated pages sometimes show a 404 Error?
How can I permanently resolve the 404 Error on translated pages?
I suspect it may be a compatibility problem. Is it possible for you to do this test?
**IMPORTANT:** Please try this in a staging environment or at least with a backup of your site files and database before continuing.
Disable all plugins except WPML-related and temporarily change the theme to a default WordPress such as Twenty Twenty-five.
Is the issue resolved with these settings? If so, please reactivate one by one to see which conflicts.
1. Clear All Caches:
• Since you’ve already cleared the Elementor and theme caches, clear any server-side caches and your browser cache to ensure that no cached data is causing the issue.
2. Use WPML’s Troubleshooting Tools:
❌ Please make a full website backup before proceeding ❌
• Navigate to WPML > Support > Troubleshooting. 
• Click on the following options: 
• “Clear the Cache in WPML”
• “Remove ghost entries from the translation tables”
• “Fix element_type collation”
• “Fix WPML table collation”
• “Set language information”
• “Fix post type assignment for translations”
3. Check for Duplicate Slugs:
• Ensure that no two pages (including translations) share the same slug, as this can cause conflicts leading to 404 errors. 
4. Verify .htaccess File Permissions:
• Ensure that your .htaccess file is writable. An unwritable .htaccess can prevent permalink structures from updating correctly, leading to 404 errors. 
If, after performing these steps, the issue persists, I would like to request temporary access (wp-admin) to your site to take a better look at the issue.
It would be better to a testing site where the issue is replicated.
The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I'll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site.
This will allow me to create a copy of your site and your content.
Once the problem is resolved I will delete the local site.
**IMPORTANT**
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields.
I have two questions:
- How was the "trainingen" CPT created? Custom code? A plugin? The theme?
- How did you translate the slug from "trainingen" to "ausbildung"? It's not in WPML -> Settings nor WPML -> String Translation
I had not built this site and the owner doesn´t know a lot about this.
I tried to find out how the CPT were created but it is not in the ability of the theme nor of one of those plugins installed. So it might be custom code.
I can´t remember to translate "ausbildung" manually. So it must have been translated automatically. Maybe in the Menu Snychronisation Tool.
Also as I looked for this, I tried the Menu Synchronisation again and now the main menu in the header disappeared at all. Or have you done something to the menu?
In my local copy of your site, I did the following:
- I went to WPML -> Settings -> Post Types Translation
- For "Trainingen" I expanded "Set different slugs in different languages for Trainingen."
- I translated the slug to DE (ausbildung) and to EN (training)
- Then the 404 disappeared
Also the problem with the menu esolves.
In the meantime I updated the theme with the newest version and I had to renew the menu with one click.
There is one more question: I could not find where to translate the string "Meer weten" in the header. Even not with the string-translation.
Do you have an idea where it could be translated.
New threads created by Otto and linked to this one are listed below: