Skip Navigation

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

Problem:
If you're experiencing a 404 error when switching the language from English to Spanish on your site, it might be due to a conflict caused by having the same custom rewrite slug for both your taxonomy and your Custom Post Type (CPT).
Solution:
We recommend that you navigate to CPT UI > Registered Types and Taxs, then edit both the CPT and taxonomy to remove the custom rewrite slug. After making these changes, ensure to clear your Pantheon cache. This should resolve the issue and allow you to view the taxonomy page in Spanish as well.

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 with us for further assistance. You can do so 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.

This topic contains 6 replies, has 2 voices.

Last updated by Long Nguyen 7 months, 1 week ago.

Assisted by: Long Nguyen.

Author Posts
July 5, 2024 at 1:15 am #15894548

jordanP-2

Hi,
we are facing 404 error when we switch the language from english to spanish.
hidden link
please help here.

July 5, 2024 at 1:28 am #15894591

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Jordan,

Here is the new ticket. If you see 404 error, mostly, the term is not translated completely. Please go to WPML > Taxonomy Translation > Select the taxonomy, translate the term "test-stations-covers" to Spanish language and recheck the issue.

Refer documentation https://wpml.org/documentation/getting-started-guide/translating-post-categories-and-custom-taxonomies/

Looking forward to your reply.
Thanks

July 5, 2024 at 11:54 am #15898364

jordanP-2

It's already translated, but still we getting 404 error.
I attached screenshot for your reference.
hidden link

July 5, 2024 at 5:42 pm #15899788

jordanP-2

Any update?
also please remove cache from the pantheon from your side.

July 7, 2024 at 2:22 pm #15907552

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I suggest you enable a minimal environment as below and see if it helps:
- Deactivate all non-WPML plugins.
- Switch to a standard theme of WordPress.
❌ IMPORTANT: Please backup your database and website before proceeding ❌

If it does not help, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.

Looking forward to your reply.
Thanks

July 8, 2024 at 10:24 am #15912286

jordanP-2

also I provide debug information.

July 9, 2024 at 1:57 am #15916346

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

The issue is related to the custom rewrite slug of the taxonomy Tracer Wire Solution Types. It has the same slug as the CPT Total Tracer Wire Solutions and causes the issue. I go to CPT UI > Registered Types and Taxs > Edit the CPT and taxonomy > Remove the custom rewrite slug and clear Pantheon cache to fix the issue.

Now you can view the taxonomy page and switch to the Spanish language as well.
hidden link

Looking forward to your reply.
Thanks

Estaciones de prueba:puntos de acceso Archivo - Kris-Tech Wire 2024-07-09 08-55-33.jpg
Settings ‹ Kris-Tech Wire — WordPress 2024-07-09 08-45-04.png
Settings ‹ Kris-Tech Wire — WordPress 2024-07-09 08-44-31.png
July 9, 2024 at 11:26 am #15920290

jordanP-2

Thank you so much for the quick help & support.