Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 -

Supporter timezone: Europe/Paris (GMT+02:00)

This topic contains 10 replies, has 2 voices.

Last updated by Yvette 4 years, 7 months ago.

Assisted by: Yvette.

Author Posts
November 29, 2020 at 10:38 am #7552529

antoineD-24

Hi,

I have deactivated (putted in draft) some products in a product catagory from the product area and they are well now removed on the french language (primary language is english).
I also unselect some category, to make sure this product is not related to the category.

on the english side, my category is gone automatically because i have no product in. Which is fine.

But in french the category is still there... Initially the product was still in.. I had to do some trick (saw on the forum) to remove correctly the product in. Now the category is empty, but the category is still there... I want to remove the category of course, because it is empty.
This is :
categorie-produit/hygiene-soins-du-corps/adulte/
and
categorie-produit/sans-categorie/

I tried to rename the categories, i tries many stuffs... but still there.

Can you please help me ?
Thanks

December 2, 2020 at 4:21 am #7576023

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

Hello

I understand that you are expecting the exact same behaviour to happen in both installed languages.

Temporary Access to your system
Please provide access to your system (wp-admin and ftp) so that I can further investigate this particular problem. The fields to provide this data are included in a private section that I will open for your next response. You can find it above the comments area. The information in this private section is only visible between WPML Support and you.

Thank you

December 3, 2020 at 1:35 am #7582783

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

I am assuming you mean the category listing that appears in the top left part of the main sidebar of your shop - right?

This seems to be a part of your theme and so would be classified as a compatibility issue.

Please upload your theme here:
hidden link

Do not upload any other plugin.
Does the same thing happen?

Thanks for confirming this.

December 3, 2020 at 8:18 pm #7590057

antoineD-24

Hi !

Yes you assume perfectly 🙂
Them updated. But i get a 404 issue in the category "decor" in spain... I think i had that too at the beginning but don't remember how I solved it. I tried to change permalinks, then the "Language URL format" in WPML > Language by "Different languages in directories" as it is on mine. But still the issue. I saved again the permalinks but still 404 issue.. Sorry I have no idea then..

Thanks

December 3, 2020 at 8:20 pm #7590061

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

Alright - I´ll take a look at it.

December 3, 2020 at 8:24 pm #7590065

antoineD-24

I tried to remove ghost entries in WPML > support > trubleshooting... still the same issue.

December 3, 2020 at 8:35 pm #7590121

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

The 404 problem was due to the product category slug being translated. I suppose your theme does not like this since the template must be linked to the name of the taxonomy.

I changed the translation and now there are no 404 errors

However, I can see that the theme sidebar is correct. It is not showing categories where there are no products. Do you agree?

So, we are unable to replicate the issue and this means that there is something particular to your installatioin that is interfering with the compatiibility of the theme.

Please now temporarily change the configuration of your site to mirror that of the sandbox. This means - temporarily deactivating all of your non-WPML plugins except for Woocommerce. Check the versions of the plugins as well as the information on the WPML > Support page with regards to your server settings.

In this setup, does the problem still happen? If so, then send us a copy of your site *in this configuration* as per this article:
https://wpml.org/faq/provide-supporters-copy-site/

I am opening the private area for you to incude a downloadable link to the Duplicator package. Do not attempt to load the files to the forum - use a file sharing service instead like WeTransfer.

Thanks

December 3, 2020 at 8:57 pm #7590211

antoineD-24

Hi,

That's right, on the test site it looks good now (no 404 error). What have you done exactly ? just in case i got the same error ? You said that but i don't see exactly what you have done :
"I suppose your theme does not like this since the template must be linked to the name of the taxonomy. I changed the translation and now there are no 404 errors".

So I moved the product "WordPress Pennant" to "uncategorise" category. You will see the category "decor" in spanish is still there.

But between your reply, I have been able to find a solution, i followed the ticket : https://wpml.org/forums/topic/some-taxonomy-terms-are-out-of-sync-between-languages/

And I did : go to WPML -> Support -> Troubleshooting.

Look for 'Clean up' and click the following:
- Synchronize posts taxonomies (do this for anything that is showing categories unsynced, such as posts/pages/products/etc) -> it was already synchronized
- Clear the cache in WPML -> Done
- Remove ghost entries from the translation tables -> Done
- Fix element_type collation -> Done
- Set language information -> Done
- Fix Terms count -> Done
- Fix post assignment for translations -> I don't think I did.

When i went back to my store > Products (english) i discovered like gost products... some were in english but not translated in french, some were in french... (in the english part). I removed the wrong manually, and now all empties categories are gone in french.

I can't explain it really. But you can test it on the test website. I leave it with the issue. So I guess by doing the same steps above, you should be able to remove the "decor-ES" category in spain.

I can't explain it. I would be interesting to test it on a theme validated by WPML to see if you get the same issue or not?

Thanks

December 3, 2020 at 9:54 pm #7590525

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

1. OK. So this is the issue at hand:

When you change/update the product category of a product, the new categories are assigned but the old categories remain assigned as well in the 2nd language.

I was able to replicate this behaviour even using the Storefront theme. This is a bug I need to report.

The support tool you need to run to set the term counts corrrectly would be :
- Fix Terms count

This will correct the category count and have the empty categories removed from your sidebar.

Do you have any questions before I escalate this issue?

2. To change the translation of the category slug I went to
Settings > Permalinks > Prodcut category base > Translations
Set the translations to be the same as the EN value.

December 4, 2020 at 11:31 am #7594507

antoineD-24

Hi Yvette,

Great to hear. Thanks for your help. Do you know how long will it take to fix it ? Nothing urgent from my side, but just wanted to know if it could take weeks, or months or year ?
Thanks

December 7, 2020 at 8:11 pm #7610717

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

Escalated.

I don´t have an estimate on how long this will take to resolve but be assured that if a quick workaround can be offered - it will be