Home›Support›English Support›[Resolved] after finish translating products, product page show in 404 error
[Resolved] after finish translating products, product page show in 404 error
This thread is resolved. Here is a description of the problem and solution.
Problem: If your website's default language is English and it's translated into other languages like French, Dutch, and German using WPML, and all translated product pages show a 404 error, this might be due to incorrect product slug translations. Solution: We recommend checking the translation of your product slugs. Ensure that any placeholders used in the translations match those in the original language. If you find discrepancies, correct the translation, remove any incorrect placeholders, and clear your site's cache. This should resolve the 404 error on translated product pages.
If this solution does not apply to your case, or if it 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 issues persist, please open a new support ticket at WPML support forum for further assistance.
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.
Background of the issue:
My website default language is English, and translated into French,Dutch and German. After translation via WPML, all the translated product pages show in 404 error. For example:
The original default page- hidden link. The translated page shows a 404 error: hidden link.
I have went to "Settings > Permalinks" and resaved the permalinks, but not working.
Symptoms:
When I switch to the translated product page, it shows a 404 error. The original default page is hidden link. The translated page shows a 404 error: hidden link.
Questions:
Why does the translated product page show in 404 error? Could you help me with this issue? thanks
Which features will remove the category part from the product URL please?
I think my Default English prduct URL has been changed, and the translated content URL is correct. This was not what i intend to do. Could you help me solve the issue? thanks!
Which features will remove the category part from the product URL please?
I think my Default English prduct URL has been changed, and the translated content URL is correct. This was not what i intend to do. Could you help me solve the issue?
Certain plugins, such as Yoast, can remove the category from the URL.
I need to request temporary access (wp-admin and FTP) to your site – preferably to a test site where the problem has been replicated if possible – in order to be of better help. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
I have identified the reason for the issue. The product slug translation included a placeholder that was absent from the original string. I removed the placeholder, added the correct translation, cleared the cache, and now it is working properly.
You can view here: hidden link.
I have also attached a screenshot for your reference.
Regarding the menu, I have created a new support ticket and will respond to it shortly. This will help other users experiencing similar problems find solutions when searching the forum. I will post my reply here: https://wpml.org/forums/topic/split-the-menu-section-is-messy/.