Skip Navigation

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.

Tagged: 

This topic contains 10 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 2 months ago.

Assisted by: Osama Mersal.

Author Posts
April 13, 2024 at 6:23 pm #15515090

joannesB

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 !

Screenshot_59.png
April 14, 2024 at 12:08 pm #15515657

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Please let me know the steps to reproduce the issue. I checked the category on your screenshot in all languages, and it worked correctly.

Best regards,
Osama

2024-04-14_14-05-55.jpg
April 14, 2024 at 12:56 pm #15515871

joannesB

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

Screenshot_59.png
April 14, 2024 at 1:03 pm #15515916

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

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?

Best regards,
Osama

April 14, 2024 at 1:13 pm #15515922

joannesB

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.

thank you

April 14, 2024 at 1:17 pm #15515924

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

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.

Best regards,
Osama

April 14, 2024 at 2:25 pm #15516030

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

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.

Best regards,
Osama

2024-04-14_16-23-23.jpg
April 14, 2024 at 2:32 pm #15516100

joannesB

HI ! please check on the left side bar marked box and also others from left side bar still not working ! giving 404 errors

Screenshot_62.png
April 14, 2024 at 2:37 pm #15516155

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I tested different subitems when logged in and out. (Kindly check the attached screenshots)

Best regards,
Osama

2024-04-14_16-34-32.jpg
2024-04-14_16-36-12.jpg
April 14, 2024 at 2:48 pm #15516201

joannesB

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

Screenshot_64.png
Screenshot_63.png
April 14, 2024 at 2:54 pm #15516230

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

The screenshots in my previous reply were from the Dutch language. Please check the attached screenshots from the German language.

Best regards,
Osama

2024-04-14_16-51-17.jpg
2024-04-14_16-50-42.jpg
April 14, 2024 at 3:13 pm #15516335

joannesB

Thanks now it's works ! i have to do a permalink reset !