Skip Navigation

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

Problem:
You are experiencing a 404 error on translated product pages after translating your website into multiple languages using WPML. Additionally, some necessary WooCommerce pages have not been created.
Solution:
First, ensure that the URLs for your translated pages do not contain special characters. For example, instead of using 'é', use 'e'. Here is a corrected URL that should work: https://sinotrukparts.com/fr/categorie-produit/pieces-detachees-howo/pieces-de-essieu-howo/
Second, verify that all necessary WooCommerce pages are created and properly configured in each language. If you're still facing issues, we 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 solution provided here does not resolve your issue or seems irrelevant, please do not hesitate to open a new support ticket. We highly recommend visiting our support forum for further assistance: 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 4 replies, has 0 voices.

Last updated by jackZ-3 1 week, 1 day ago.

Assisted by: Christopher Amirian.

Author Posts
November 12, 2024 at 11:20 pm #16394909

jackZ-3

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?

November 13, 2024 at 12:19 pm #16397495

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

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.

After that we will check for the categories.

Thanks.

November 13, 2024 at 12:56 pm #16397684

jackZ-3

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?

See the new pictures, thank you

23.png
November 14, 2024 at 8:04 am #16400952

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

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.

Thanks.

November 17, 2024 at 10:04 am #16411521

jackZ-3

Thanks for the reply, how do I set up a private reply? Thank you.

November 17, 2024 at 1:40 pm #16411754

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there should be a private checkbox below the reply box for you to cehck

November 18, 2024 at 4:06 pm #16415761

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi thanks you.

No worries about the FTP connection. Before being able to go forward I need an answer about the steps I mentioned in the previous reply.

Did you follow them? And what was the result?

Also you did not give your permission to copy your website to our server in case there is a need.

Thanks.

November 18, 2024 at 4:09 pm #16415778

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

I also checked the URL of the page and it seems that you use a wrong URL as you use the special French é character in the URL which is wrong.

You need to use the standard e character. Like this which works ok:

hidden link

Screenshot 2024-11-18 at 8.09.11 PM.png
November 18, 2024 at 9:12 pm #16416543

jackZ-3

Hello, thank you for your reply, I removed all the special characters inside the Slug and now it doesn't show the 404

November 19, 2024 at 10:15 am #16418658

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Perfect 🙂 I'm glad that you managed to fix the issue.

November 19, 2024 at 9:36 pm #16421616

jackZ-3

Thanks for your reply and have a great day!