Home›Support›English Support›[Resolved] Some of my translated pages don't exist and langage switcher not using new URLs
[Resolved] Some of my translated pages don't exist and langage switcher not using new URLs
This thread is resolved. Here is a description of the problem and solution.
Problem: After updating the URLs of pages, some pages stopped working both in the frontend and backend when using Elementor, except in Elementor safe mode. The language switcher was redirecting to non-existent pages due to these URL changes. Solution: We identified that the issue was due to the URL structure set for the categories, which conflicted with the page URLs. Specifically, both a page and a post category shared the same URL without the '/category/' part in the category URL, causing conflicts. To resolve this, we recommend checking and updating the permalink settings to ensure that pages and categories have distinct URLs. This might involve adding '/category/' to the category permalinks or adjusting the page URLs to avoid overlap.
If this solution does not apply to your case, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket here.
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 recently updated my pages' URL and since then, some pages don't work anymore. The pages don't load on the frontend, nor in the backend with Elementor. Only in Elementor safe mode can I see the page translated. One of the affected pages is: hidden link. When using the language switcher, I get redirected to a non-existent English page (hidden link) instead of the new one (hidden link).
Symptoms:
The translated pages don't exist, and the language switcher is not using the new URLs. The expected page design with Elementor is not visible, and instead, I get an error page.
Questions:
How can I solve the issue of translated pages not existing?
Why is the language switcher redirecting to a non-existent page?
When I check the source I can indeed see the URL for EN (default language) pointing to the URL you shared with us.
view-source:hidden link
EN -> hidden link
FR --> hidden link
Please visit the EN page and while logged in at the top header click on "Edit page" , while in the edit page review the permalink structure as well as if this page is a child page related to a parent.
From the backend, pages section, this page is called "Morocco".
Its URL which works is hidden link
When switching to French, the URL pointed to is : hidden link
Which is correct, that's the URL it should be.
On 4th December I did an URL update and removed all parent pages (with redirects):
- "destinations/africa/morocco-travel-guide/' -> "Morocco/"
- "fr/destinations/afrique/maroc/" -> "/fr/maroc/"
This has been done for over 40 pages (English/French) and only a few of them seems not working anymore in French.
When I switch my backend to French and go to the Morocco page, I also see the correct URL, but when I tried to open the page, I get to the archive.
I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)
**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **
I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you enter is private which means only you and I have access to it.
NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.