This product is currently out of stock and unavailable
-
PART A
I have created a woocommerce website using crocoblock plugins ..and so far everything was running ok. Lately though appeared a very persistent issue with the stock. Some products appear as out of stock in the front end ..although when editing those products, they do have stock available ..and if updating the product (without changing something), the front end also shows correctly that it is in stock. The persisting issue is that even than I bulk updated all products (twice till now) after a few days the issue starts appearing randomly again.
“This product is currently out of stock and unavailable.”
This is the message shown by products that have the problem ..although they have stock available, and a simple update of the product solves the issue temporarily. Tried a few things ..disabled cache, disabled plugins to check for conflicts, reverted to a default theme, optimized the database, converted all tables to InnoDB, removed transients… Nothing seems to do the job – the problem is still there.
PART Ba key point is that a product that works ok, loads the variations as seen here: https://gyazo.com/0b29ddf234f0ab794176d9672d95d399
whereas a product with the stock issue, does not load the variations: https://gyazo.com/14512f7e44c1083b7a937824c1275d8c
A simple change in the product variations > Save changes ..or by simply updating the product (edit product page) ..corrects the issue. But after some days ..randomly, other products start behaving like this again.
PART CI migrated the site to a new server ..but unfortunately the issue persists. There is another clone on another host/server, litespeed, with less resources (so it loads very slow) ..BUT after the migration it sort of crashed and repaired itself (it looked like that) ..and then the problem disappeared! And still haven’t reappeared to my knowledge. Will have to thoroughly check again if this is the case indeed.
So at the moment, I have a freshly migrated site ..a staging site on the same server (both with the stock issue) ..and a third copy of the site on another host/server. It should plenty to help with the troubleshooting.
From what I see in other threads here and in github ..this is a persisting issue that has not been resolved for some time now.
Please advise
Kind thanks
- You must be logged in to reply to this topic.