[Resolved] translation links disappear and cause 404 errors
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing 404 errors when trying to access translated versions of their pages. The issue was related to the disappearance of translation links in the menu, which seemed to occur intermittently, often after automatic updates. The client had integrated absolute links of the pages into the menus rather than selecting these pages directly in the menu settings. Solution: We recommended that the client delete and recreate all menus in the required languages (FR, EN, DE) and then use the WPML > Synchronize WP menus function to ensure proper synchronization. It's important to note that custom menu items can only be translated using WPML > String Translation or adjusted manually within each menu, as WPML Menus Sync cannot automatically handle custom menu items. For more detailed guidance on translating menus, please visit Translating Menus Documentation.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific 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. Should further assistance be needed, please open a new support ticket at WPML 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.
I have integrated the absolute links of the 4 rooms pages into the menus rather than directly selecting these 4 pages in Appearance > Portfolio Menus + add to menu
Thank you for contacting the support. Meanwhile this ticket is attended by one of my colleagues, I checked your site thoroughly and can see all the links working properly for default language, as well as, for English and German.
Can you find any pattern that when exactly the said issue happens? I mean any update in the content, or in server?
However, is it possible for you that you isolate the site into a separate copy, as soon as this issue happens, before even fixing it? So then we can observe the problem and proceed accordingly.
Hello,
the difficulty is that it appears and disappears a few minutes later and often following automatic updates, but I am not sure. At the time I am writing this request, there is no problem.
I'll clarify the problem:
When I click on the menu on "Our rooms > room-sandro-delos" from the French version, the page that appears is a 404 error page and the link in the URL is rewritten https://
www2.lheurebleueprovence.fr/ubernachtung-mit-fruhstuck-villeneuve-les-avignon/studio-sandro-delos/
instead of:
hidden link
Then by visiting other pages, then returning to the French version and then again "Our rooms > room-sandro-delos" the page is displayed correctly.
It's incomprehensible.
I just copied the entire thing (files and database) to the test domain hidden link
The admin for the Wpml team:
Admin url: hidden link
user: wpml@intrasite.fr
Password: WXVzTJFJ!c7yytMCt0%TH%hs
I'll let you watch and tomorrow I'll redo the translation of the menus into English and German