-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
products became “out of stock” after update from 2.0.7 to 2.1.0 #5222
Comments
@antonlazarchenko |
@andimov , I run site at localhost under windows 7, using xampp with php 7.0.6 required for magento 2.1.0.
What else can I describe? |
@antonlazarchenko |
@andimov here it is: Server: Localhost via UNIX socket System requirements is ok including php version 7.0.6. |
@antonlazarchenko |
@andimov sorry, it was a mistake caused bad version of mysql client. |
Same problem here after upgrading from Magento 2.0.7 to 2.1.0, note that my Magento 2.0.7 had products imported from a 1.7.0.2 database using data-migration-tool. After following steps below all my products show as 'out of stock' and don't show up in categories:
I have MySQL 5.6.3 running on localhost. I can still see the products when I visit product pages directly but can't order these products as they are out of stock. On Magento 2.0.7 all products were visible & purchasable. Note that I have Configuration -> Catalog -> Inventory -> Manage Stock set to "No" and Display Out of Stock Products set to "Yes". Note that I was suffering from the issues described in #5236 and had to remove all items from catalog_product_entity_varchar attribute_id=111 to work around the following error: Notice: Undefined offset: 111 in /vendor/magento/module-eav/Model/ResourceModel/ReadHandler.php on line 166
Wondering if this could be the root cause of this next issue... |
FWIW: noticed that quantity_and_stock_status attribute was (no longer?) part of the Migration_Default attribute set, so couldn't see stock information on product pages on backend. After manualling adding the quantity_and_stock_status attribute to the Migration_Default attribute set I can see all products in backend as "In Stock" but on frontend they still show "Out of Stock". I also can't seem to change the value of quantity_and_stock_status in backend (when I change a product to "Out of Stock" the page reloads and shows "In Stock" again). Can someone tell me what SQL query I can execute to show stock status of products? |
In my case I solved problem by changing website_id to 0 in cataloginventory_stock and then I did reindex. |
@DmytroRevischuk thank you for solution! |
@andimov unfortunatelly it doesn't work for me. I already had website_id=0, so there was nothing to change. |
@DmytroRevischuk thanks, this fixed my problem!
|
@antonlazarchenko Did you use the migration tool in this installation? |
@andimov no, I didn't. Is that necessary for upgrade from 2.0 to 2.1? |
Thank you for reporting. |
Hi, |
@DmytroRevischuk @andimov Your solutions worked perfect for me as well. Thank you. |
…rom 2.0.7 to 2.1.0 #5222 - remove reindex from data upgrade script
…rom 2.0.7 to 2.1.0 #5222 - set cataloginventory_stock index as invalid
Fixed issues: * MAGETWO-57820: [GITHUB] php bin/magento i18n:pack creates unwanted dir #6260 Bug - P1 * MAGETWO-58337: [Github] Duplicated & missing product rows in system product export #4531 * MAGETWO-58289: [Github] Product URL Key not automatically generating during import #5128 * MAGETWO-58134: [GitHub] Products became “out of stock” after update from 2.0.7 to 2.1.0 #5222 * MAGETWO-58132: [GitHub] module:uninstall can remove code it uses itself #5797 * MAGETWO-58236: Sync requirements of composer.json of Sample-data with mainline
Do you think i have to run also |
Hi @LucScu , |
Also after run reindex products with website = 1 remains in cataloginventory_stock_status |
I solved just doing a |
…r update from 2.0.7 to 2.1.0 #5222 - for 2.1
Fixed issue: - MAGETWO-56804 [Backport] Product catalog Import/export - Date & Timezone issue - for 2.1 - MAGETWO-58312 [Backport][GitHub] Products became “out of stock” after update from 2.0.7 to 2.1.0 #5222 - for 2.1
@vihuarar you made a mistake. |
[CIA] Remove all SID from URLs
After updating from 2.0.7 to 2.1.0 all the products in catalog became "out of stock". That's how they displaying in my bestseller widget.
But in admin panel they always have positive quantity, so they have to be "in stock".
And, of course, they are invisible at frontend catalog.
UPD: Only when I'm adding a new product it appears at catalog, but no changes with already existed catalog products. indexer:reindex doesn't solve the problem with existed products.
Why is that so and how to fix that?
The text was updated successfully, but these errors were encountered: