Home›Support›English Support›[Resolved] [URGENT] Product Category URL is not translating and i am getting 404 error
[Resolved] [URGENT] Product Category URL is not translating and i am getting 404 error
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing 404 errors when accessing product categories in languages other than English on their WooCommerce site. The categories worked fine in English, but when switching languages using the language navigation, the client encountered 404 Page Not Found errors.
Solution: We found that the slug category translation was incorrect in the WPML String Translation. We resolved the issue by deleting the incorrect translation and re-translating it. After this change, the sub-items started working correctly.
If you're experiencing similar issues with 404 errors on your multilingual WooCommerce site, we recommend checking the slug translations in WPML String Translation and ensuring they are correct. If you find any discrepancies, delete the incorrect translations and re-translate them.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.
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.
So, i have product categories which are created on woocommerce. suddenly I see those are not working at all ! i am getting 404 errors. i have created a menu with product category. and then showed that on sidebar and menu bar as well. some of is working and maximum isn't working at all. i am getting 404 page not found error on each language. i have tried all possible solution but none of these are working ! so can you please take a look and fix that or guide me to fix . it's very very URGENT so please
NOTE: on english version : it's works perfectly ! on enlish language when I visit the website then from left sidebar and from top menu bar on both place it's working. but when I change site language from language navigation then the errors 404 comes in !
PLEASE check the subcategory on left sidebar on all language . on english It's working but other language it's giving 404 error . please check that and update me as soon as possible.
see screenshot and check all the links of category on left sidebar in all language
Thanks for your reply. I checked the issue and found some unworking sub-items. I noticed that the working sub-items have a different URL than the others, for example:
Working: hidden link
Not Working: hidden link
Do you use any plugins or custom functions to delete the category slug?
hi !
as you give the url hidden link this url is from dutch language but If you visit website on english you will see this category URL will be changed to english then it will be working . exactly same thing for other category listed there even if you see on main menu on the header this has also same issue . when I visit website in English then it's perfect but once visit on other language then 404 comes in due to translation of URL I belive. and I belive it's because of URL translation of WPML . or something like this ! so I belive I didn't use any custom function or anything to change the URL like this. before everything was working perfect. suddenly I notice this issue. if you want i can share my access of admin and you can check form deep of backend.
I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Preferably to a test site where the problem has been replicated.
Your answer will be private, meaning only you and I can access it.
❌ Please backup your database and website ❌
✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.
✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.
Thanks for the access details. I checked the issue and found that the slug category translation was incorrect in String Translation, so I deleted it and re-translated it.
After that, the sub-items worked correctly. (Kindly check the attached screenshot)
Please check it and let me know if it works correctly.
i have cleared the cache ! and tried with login and logout even tried on different browser as well but I am getting the same issue ! did you tried on dutch language ? please check on every language only it's works in English ! if you tried on english then it will work but other language doesn't work ! please check the attach for proof