Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are experiencing 404 errors on translated category pages after using WPML to translate your entire site.
Solution:
We resolved this issue by re-saving the permalinks and flushing the cache. We recommend you try the following steps:
1. Navigate to your WordPress dashboard.
2. Go to Settings > Permalinks and simply click 'Save Changes' to re-save your permalink settings.
3. Clear your site's cache through your caching plugin or your hosting provider's control panel.
After completing these steps, please check if the translated category pages are loading correctly.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your 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. If the problem persists, please do not hesitate to 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.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Mateus Getulio 4 months ago.

Assisted by: Mateus Getulio.

Author Posts
September 6, 2024 at 12:48 pm

ahmadS-21

Background of the issue:
I tried translating the entire site using WPML, but now category pages that have been translated are returning a 404 error. The site I need help with is hidden link.

Symptoms:
Translated category pages are returning a 404 error.

Questions:
Why are translated category pages returning a 404 error?
How can I fix the 404 error on translated category pages?

September 6, 2024 at 1:12 pm
September 6, 2024 at 6:57 pm #16150325

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

I debugged this but so far I couldn't find the culprit of the error.

I'd like to ask permission to make a copy/staging version of your site where I can debug this closely without affecting the live site. I need to switch theme and disable plugins for example.

I'll make sure to delete this copy as soon as we get this issue fixed.

I'm afraid of debugging directly on the live site and cause issues to your visitors. Also, it is important to test a different setup as part of the troubleshooting.

Thank you, please let us know.
Mateus

September 9, 2024 at 7:23 am #16154062

ahmadS-21

Yes feel free to make a copy/staging version to test and debug and if possible we would like to test the possibility of keeping the urls in their original form and not have them translated

September 9, 2024 at 9:21 pm #16158907

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

It looks like some issue with cache was causing the 404 not found.

I re-saved permalink and flushed cache and I'm no longer able to reproduce the 404 error, please check the screenshot of a working category page when I accessed hidden link

Can you please test it and confirm that the issue is no longer happening?

Thank you,
Mateus

category.jpg
September 10, 2024 at 7:56 am #16159781
ahmadS-21

Yes it worked concerning the urls I wish to keep them in their original form and not have them translated do i open a new ticket regarding this?

New threads created by Mateus Getulio and linked to this one are listed below:

https://wpml.org/forums/topic/split-use-same-url-slug-for-translated-items/

September 10, 2024 at 4:28 pm #16162879

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Ahamd,

Thank you for following up.

Since the main issue of the ticket has been addressed and resolved, I have gone ahead and created a separate ticket for this new request and have already replied to you with the solution in there.

You can find my response here: https://wpml.org/forums/topic/split-use-same-url-slug-for-translated-items/

Thank you for your understanding.
Mateus