[Resolved] Woo Product variations not synching continues
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.
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.
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?
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
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.
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.
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.
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.
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.