Skip to content Skip to sidebar

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

Problem:
The client is experiencing issues with WooCommerce product variations not syncing correctly between different language versions of their site, even after installing the WPML Non-Persistent Cache as previously advised.
Solution:
We recommend manually editing each variation in the original product and saving it again. This action should resolve the syncing issue. It appears that the translations may have been damaged, and updating the variations can rectify this problem. If you're experiencing this issue, try the following steps:
1. Go to the original product.
2. Edit each variation.
3. Save the changes.
This method has proven effective in similar cases, as demonstrated in the example provided by our support team.

Please note that this solution might be outdated or not applicable to your specific case. If the problem persists, 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 necessary, 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.

This topic contains 30 replies, has 2 voices.

Last updated by Andreas W. 1 year, 4 months ago.

Assisted by: Andreas W..

Author Posts
June 4, 2024 at 4:39 pm #15703525

cristaG

Somewhy the site showed internal errors when trying to log in. I disabled "hide login plugin, and I was able to log in using /wp-admin, but other pages are still the same - perhaps some configuration you tried, messed up something.

Do u need me to clone the site again?

June 4, 2024 at 5:54 pm #15704052

cristaG

if you can get it fixed, here are some other products:

hidden link
hidden link

You can just change the main url from these.

NB! But overall we are not happy that 1 month Finnish side is broken, we are loosing a lot of revenue. Can you get more advanced engineers to look at it?

June 4, 2024 at 10:22 pm #15704509

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

My apologies, but you reported an issue related to Object Cache PRO and I can not confirm this yet. We need to be able to test and replicate such an issue and to know exactly how to trigger it before being able to escalate it internally.

Also, take note that I updated our plugins to the latest available version on this staging site.

At the moment Object Cache PRO is active but not enabled on this staging site. Also, if the issue would be Object Cache related then disabling Redis and flushing the cache by using the WP-CLI should usually solve the issue.

Anyhow, this issue appears not to be Object Cache PRO related.

Example: hidden link

1) The issue first persisted when testing the site only with WooCommerce and WPML plus add-ons on the Twenty Twenty-Four theme.

2) The product uses only a few of the global attribute "colors" which has 1,457 items. (4253 incl. translations)

3) Saving the attributes and the original product (Update) solves the issue for the translated product.

4) Running the sync option for product attributes does not solve the issue.

5) Finally, once I enable the Child Theme, the issue occurs again, which means that this issue is caused by the Child Theme.

You will see that it works, while all plugins are enabled and the Twenty Twenty-Four theme is active. Now switch to your Child Theme and you will see the issue again.

I suggest you debug the Child Theme for errors as currently enabling the Child Theme is even triggering a 500 error on the following product:
hidden link

June 5, 2024 at 5:17 pm #15708261

cristaG

Hi,

Well I enabled child theme and both products work just fine, including variations:

hidden link

hidden link

And only thing that is different is that object cache is not enabled. Did you disable it?

June 5, 2024 at 6:01 pm #15708470

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

The object cache is not enabled on this staging site. See screenshot.

Please enable the connection, update WPML Multilingual CMS and WPML String Translation, and then revise if the issue will occur again.

object cache.jpg
June 6, 2024 at 6:09 am #15709283

cristaG

I updated WPML, and string translation on the main site, cleared object and WP cache, but still the issue persists:

hidden link
hidden link

June 6, 2024 at 3:48 pm #15712513

cristaG

I also enabled object cache on staging site or should I clone the live site over to the server again, so you could debug it now, after plugins updated.

June 6, 2024 at 3:52 pm #15712515

cristaG

Btw I just deleted variations from the product: hidden link

And received the error as seen as on the added screenshot. Could it be related to the issue we are having? Because even after updating the product using WPML advanced translation editor, variations that I deleted from English are not syncing.

error.png
June 6, 2024 at 5:34 pm #15712912

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

Please avoid editing translated products manually inside the WordPress Editor. WPML will always sync the product details from the original product to the translations. This means the translations should share the same product details as their original counterpart.

This error that you are reporting is not coming from WPML, it is coming from:
"Selling Commander Connector hidden link"

I now revised hidden link and it shows the same attributes as the original product.

Take kindly note, that so far it seems that there were only some issues on a few of the many products that your site has.

If we handle a general bug, then usually you would see it on all products and would be able to replicate it even with a newly created product.

It might even be that the site was damaged by a bug that already has been solved in the latest versions of the affected plugins and now you simply needed to update the translations to solve the issue.

For now, I would suggest you leave the staging site running while Object Cache PRO is enabled and investigate if the issue occurs again.

June 6, 2024 at 7:15 pm #15713115

cristaG

What? I didn't manually edit translated product. I said "variations that I deleted from English (original) are not syncing" in Finnish. That means I went to original product and deleted variations there, then used updated Finnish using WPML advanced translation editor!!!!!!

Howcome, if I check hidden link original have less variations!

For example, in English I deleted 7 AA (screenshot 1). hidden link

But you can see 7 AA in Finnish (screenshot 2): hidden link even after I updated Finnish....

How can you then say they have same attributes?

Also, issue is still there on live site. I updated plugins like you said on our real site. Then went to update this product: hidden link (I updated original product and Finnish using WPML advanced translation editor) but as you can see still variations are not being seen.

2.png
1.png
June 6, 2024 at 8:36 pm #15713243

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

My apologies for the misunderstanding, but you said:

"Btw I just deleted variations from the product: hidden link"

This link is a translated product.

---

Thank you for the latest examples.

I can confirm here that the variations are not synced correctly, even if we resave the original variations.

Now, this seems to be a bug to me, as one of your original products has 62 attributes, but only 59 variations and the translated product shows 62 attributes.

Is it expected that your original product has more attributes than variations?

Workaround: Remove the attributes for which you are not using variations from the original product.

10 plugins on your site are not updated, including WPML.

After running the updates the issue seems to have disappeared.

Please verify now.

June 7, 2024 at 5:25 am #15713698

cristaG

Hi,

I updated all plugin on our live site but the issue is still there.

I cannot updated WPML on staging because it wont let me.

Question 1: Do you need me to recreate a staging form the live site again?

Question 2: Where to you see the different number of attributes compared to the variations?

June 7, 2024 at 6:37 am #15713831

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

Example:
hidden link

You said you removed variations from this product.

If you edit the original product or revise the original product on Frontend, you will see that it has 62 attributes, but only 59 variations.

The translation still had all 62 variations and this appeared like a bug to me.

I already updated all plugins on the staging site and the issue disappeared after that.

Kindly note that today, Friday the 7th of June is a public holiday here in Peru.

I will be back on Saturday, the 8th of June, to assist you on this matter.

June 8, 2024 at 5:17 am #15718026

cristaG

I updated all plugins on a live site, deleted WP Rocket and Object Cache Pro cache, but the issue persists:

hidden link

June 8, 2024 at 1:27 pm #15718298

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

Can you still confirm the issue on the staging site?

I do not have access to your live site.

Did you update all the plugins on your live site? Would you be able to provide me access to the live site?

The private reply form is enabled again.