Skip Navigation

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.

Tagged: 

This topic contains 2 replies, has 0 voices.

Last updated by alexandreR-30 1 week, 5 days ago.

Assisted by: Bobby.

Author Posts
December 9, 2024 at 3:25 pm #16493942

alexandreR-30

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?

December 9, 2024 at 6:00 pm #16494645

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

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.

Let me know your results!

December 9, 2024 at 6:42 pm #16494694

alexandreR-30

Thanks for your answer.

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.

Screenshot 2024-12-09 at 19.40.32.png
Screenshot 2024-12-09 at 19.40.15.png
December 10, 2024 at 8:14 pm #16500299

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for updating me!

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.

Thank you,
Bobby

December 11, 2024 at 7:14 pm #16505198

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for the access details!

I believe the issue is coming from the URL structure that is set for the categories.

Taking the Morroco page for example.

There is a page for Morroco with this URL -> hidden link

There is a post category for Morroco with this URL -> hidden link

The category permalinks are missing the /category/ part causing these behaviors.

December 12, 2024 at 8:14 am #16506545

alexandreR-30

Great catch 🙂 I rolled back the URL structure for the categories and it works.

Thanks a lot.