Ce sujet est résolu. Voici une description du problème et de la solution.
Problem: After updating WooCommerce and switching to PHP 8.3, all Spanish category pages on the client's website are showing a 404 error, while other languages work fine. Solution: We recommend checking the slug settings under WPML → Permalinks. If the original setup used 'categorie-produit' for slugs, it's essential to maintain this structure consistently across all languages. Additionally, please review our recently published errata regarding issues with product category links not using translated slugs. You can find more details here: https://wpml.org/errata/product-category-links-do-not-use-translated-slugs/
If this solution does not resolve your issue or seems outdated, 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 open a new support ticket for further assistance.
Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.
Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.
Contexte de la question:
My website crashed following a WooCommerce update. I fixed the crash by updating to PHP 8.3, after that I noticed issue with the Spanish category pages.
Symptômes:
I have a 404 page for all my categories in Spanish, but not in the other languages.
Questions:
Why am I getting a 404 error on my Spanish category pages?
How can I fix the 404 error on my Spanish category pages?
So there is no relation with what appears in the taxonomie slug (see printscreen). I am very afraid to break all my SEO work if I change something here.
Do I have to write "categorie-produit" for all the slugs?
If yes how can I change the english slug? I have no access to change it.
Les langues: Anglais (English )Allemand (Deutsch )Français (Français )
Fuseau horaire: Europe/Zagreb (GMT+02:00)
The slug in the original language (which WPML typically stores as English by default, even if your site doesn't use English) is set under WPML → Permalinks.
Regarding your question: "Do I have to write 'categorie-produit' for all the slugs?" — yes, if your original setup used that structure, then you'll need to include it consistently.
I think that I identified the source of the problem but I don't know how to fix it.
I realized that I was not looking in the correct part, I was in "categories" and not in "product categories"
Now I can see in "product categories" that the slugs are not translating except for spanish (see attached). As you can see it is written "categoria-producto" and not "categorie-produit" as I want but it doesn't let me change the translation.
Les langues: Anglais (English )Allemand (Deutsch )Français (Français )
Fuseau horaire: Europe/Zagreb (GMT+02:00)
Could you try filling in all the fields and then click "Enregistrer"? We need all of them completed for this to work, even if the singular and plural entries are just copy-pasted.
After that, please click the synchronization button below. Does it work?