Background of the issue:
I am trying to translate my website from English to French, Spanish, Portuguese, Arabic, and Russian using WPML. My website is hidden link.
Is the reason because I translated all the product-categories into other languages? Should it be in English here? Can't show catégorie-produit for example?
You can check these French, Spanish, Russian, Portuguese, Arabic, etc. product pages are showing 404 page not found. hidden link
Symptoms:
Translated product pages show a 404 page not found error. Additionally, one or more WooCommerce pages have not been created.
Questions:
What can I do to resolve the 404 error on translated product pages?
How can I ensure all necessary WooCommerce pages are created?
Let's address the Woocomemrce pages installation issue first. In the screenshot you provided you have the option below the message called "Install Woocomerce Pages" and follow the steps mentioned there.
After that please make sure you have a backup of the website and do as follows:
- Go to WordPress Dashboard > Woocommerce > Woocomemrce multilingual & Multicurrenct > Status (tab)
- Scroll down and click the troubleshooting link.
- Select all the options there and click the start button to finish the steps.
Make sure you have a backup of the website before following the steps above.
Get back to us with the result for the pages of Woocomemrce which is the cart page and checkout page and see if they are translated.
Thank you for your reply, Woocomemrce missing accessories because I deleted the page? Since mine is a B2B site, I deleted the Cart page, Checkout Page, and My Account Page because I don't use them. Is this the reason? Do I need to restore these pages?
I see, as Woocommerce Multilingual & Multicurrency plugin needs to have those pages please keep them as it is for now and I see that those are translated because there is a pencil icon showing next to them in the screenshot you provided.
So all is good regarding the Woocommerce page warning.
Now regarding the product pages, one thing that I see is the link contains a URL that has a special character: catégorie-produit
That might be the problem cause, please go to WordPress Dashboard > Woocommerce > Woocommerce Multilingual & Multi-currency > Categories (Tab) and scroll down to see the "Translations of taxonomy Category labels and slug" section.
Click on the slug item and make sure that the French translation does not have special characters for example: categorie-produit
After that:
- Go to "WordPress Dashboard > Settings > Permalinks".
- Click the "Save" button to flush the permalinks cache.
See if it fixes the issue. If not, please test if the same thing happens (404 error on translated products) if you use minimal installation:
- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except WPML and its add-ons.
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.
If the issue persists, following the steps above, I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.
Make sure you set the next reply as private.
Also, we will need your permission to copy the website to our server for more investigation if needed.