Skip Navigation

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

Problem:
The client reported an issue where variable products randomly displayed as 'out of stock and unavailable' after WPML was uninstalled. The client suspected that WPML might have been uninstalled incorrectly, potentially leaving duplicate variations in the database.
Solution:
We recommended following a specific guide to ensure that WPML was uninstalled correctly, which can be found here: WPML Reset Guide.
If the problem persists after following the reset process, it is unlikely that WPML is the cause. We suggested further investigation by allowing us access to the site to potentially escalate the issue to our second-tier supporters. We also emphasized the importance of security and privacy, advising the client to back up site files and database before providing access, and preferably sharing access to a staging site if available.

Please note that this solution might be outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, 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 2 voices.

Last updated by Itamar 3 months, 2 weeks ago.

Assisted by: Itamar.

Author Posts
August 30, 2024 at 9:20 pm #16126339

ricardoA-22

Background of the issue:
I'm here to report a very tricky problem and it's very difficult to trace the cause/origin. In any case, I suspect it is WPML related. This error only occurs with variable products. I have seen several similar problems related to WPML and found this article: https://wpml.org/forums/topic/translated-product-showing-out-of-stock-and-unavailable/ which leads me to this solution: https://wpml.org/errata/woocommerce-multilingual-variable-product-stock-status-is-not-updated-when-it-gets-out-of-stock-in-the-second-language/. I made a major structural change to my site and no longer have WPML installed on the new version, but this error started occurring shortly before that change. What brings me here is that I suspect WPML has been uninstalled incorrectly and has left duplicate variations in the database or something similar. Link to a page where the issue can be seen: hidden link

Symptoms:
I have a large group of products (not all at the same time) showing the error ‘this product is out of stock and unavailable’. The only temporary solution I have found so far is to edit the product page, click refresh and it goes back to normal for a day or two. The product only displays the message ‘This product is out of stock and unavailable’.

Questions:
How can I solve the problem of variable products randomly showing ‘out of stock and unavailable’?
Is it possible that WPML has left duplicate variations in the database after uninstalling it?
What steps should I take to make sure WPML has been uninstalled correctly?
Is there any way to prevent this error from affecting my sales in the meantime?

September 1, 2024 at 5:58 pm #16129410

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I am sorry for any inconvenience you were caused.

Please read the following guide to make sure WPML has been uninstalled correctly.

https://wpml.org/documentation/getting-started-guide/language-setup/deleting-languages-and-plugin-data-by-doing-a-wpml-reset-on-your-site/

Regards,
Itamar.

September 1, 2024 at 9:06 pm #16129602

ricardoA-22

Hi Itamar,

Thank you very much for the guide, I had already followed it when I uninstalled wpml but the problem persists, I will need additional help...

Thank you,
Ricardo

September 2, 2024 at 8:06 am #16130354

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, Ricardo.

If you have correctly followed the reset process, we doubt that WPML is the cause of the problem. However, we will check and determine if WPML is the cause.

Please give me access to your site and allow me to take a copy of your site. For this, I must install a plugin like Duplicator or All In One Migration. I'll then escalate this issue to our second-tier supporters.

If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Thanks,
Itamar.

September 2, 2024 at 9:07 pm #16133527

ricardoA-22

Hello Itamar,

Thank you very much for your help. Before I give you access, I wonder if there is also a guide on how to completely remove the Woocommerce Multilingual plugin, similar to the guide you shared for correctly uninstalling wpml.

Thank you

September 3, 2024 at 6:12 pm #16137426

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

No, we do not have a separate guide on how to remove WooCommerce Multilingual & Multicurrency. The DB tables are the same for WPML and WooCommerce Multilingual & Multicurrency.

Please let me know how you want to proceed. Meanwhile, I'm NOT enabling a private message for the following reply.

Regards,
Itamar.

September 6, 2024 at 6:59 am #16147375

ricardoA-22

Hi,

At the moment I can't prove a direct cause with wpml. If anyone else is having this problem, I suggest collaborating on this woocommerce issue: hidden link

It's very difficult to trace the cause, but with the help of a community on the same issue we're managing to narrow down some causes. I hope this can help in some way.

Thanks Itamar for your support so far!