Skip to content Skip to sidebar

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

Problem:
The client is experiencing 404 errors on translated WooCommerce product categories and issues with product variations not working correctly on translated products.
Solution:
We recommend changing the category slug to a different one and translating it to see if this resolves the issue. If the problem persists, please follow these steps:
1. Deactivate all plugins except for WPML CMS, String Translation, WooCommerce, and WooCommerce Multilingual.
2. Switch to a default WordPress theme, such as Twenty Twenty-One.
3. Resave the permalinks.
Please conduct these tests in a staging environment, not on your live site. You can create a staging environment using the WP Staging plugin.

If the issue remains unresolved or if you encounter other problems, 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 the solution provided here becomes irrelevant or does not apply to your case, please open a new support ticket at 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 5 replies, has 0 voices.

Last updated by Osama Mersal 5 months ago.

Assisted by: Osama Mersal.

Author Posts
February 17, 2025 at 10:17 am #16712740

eliseoD

Background of the issue:
I'm translating WooCommerce products and its categories using WPML on my site hidden link.

Symptoms:
404 screens on any translated product category while apparently everything for categories themselves to permalinks are correctly set.
That and some other issues like product variations not being working correctly on the traslated products may point that there is something broken on the database or something similar.

Questions:
Why am I seeing 404 screens on translated product categories?
How can I fix the 404 error on translated categories?

February 17, 2025 at 12:07 pm #16713990

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 change the category slug to a different one and translate it to check if that fixes the issue. If it didn't, please follow these steps to check if the issue persists in a minimal environment.

1- Deactivate all the plugins except WPML CMS, String Translation, WooCommerce, and WooCommerce Multilingual.
2- Switch to a WordPress default theme like Twenty Twenty-one.
3- Resave the permalinks.

If the issue is gone, activate them one by one to see which one is causing an interaction issue.

❌ Please don't do the above test in your live environment ❌

To run the test, you can create a staging environment using the "WP Staging" plugin.

Best regards,
Osama

February 18, 2025 at 7:17 am #16717008

eliseoD

Hi Osama,

I performed the full test as required.

404 were gone, and after to re-activate all pluggins 1 by 1, check for 404 screens every single time and then go back to the Salient Child theme (The test was performed with Salient as I don't have other themes) no 404 screens, I do not know what exactly means, but apparently there is no conflict with any other pluggins.

I'm going to create a new product and see if the other problems like variations not working on traslated versions still happen.

I'll be back after to do that.

Thank you very much.

February 18, 2025 at 10:26 am #16718002

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Osama is off today, so I will take care of this ticket.

Great, glad to hear it works fine.

Please check and let us know if you still have issues.

Regards,
Drazen

February 19, 2025 at 10:39 am #16723617

eliseoD

Hi Drazen,

apparently all works good now, variations get traslated correctly and everything is in order.

As I thought all came from the same problem which look much to be related with slugs and permalinks.

Thank you very much.

February 19, 2025 at 10:54 am #16723668

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Thanks for your update. Please don't hesitate to open a new ticket if you face any other issues. We are always happy to help you.

Have a great day!

Best regards,
Osama