Edit product with placeholder image
View with placeholder image
Cannot gather stats! Warning!stat(): stat failed for /Volumes/Data/[...]/pub/media/catalog/product/p/o/poc.jpg
Hi @ppisarek , thanks for reporting this. We already have internal ticket MAGETWO-54718 in our backlog to fix this issue.
Thanks,
Anton.
The issue has been fixed in commits 2e03028, 3459ef1, 39d7f39, 16895be, 21dd4cc and should appear in develop branch at the nearest time.
I still got same the error in Magento2.1
Any way to temporarily work around this so we can edit the product details? This error is currently blocking the entire edit product details page from loading.
@thdoan I solved the issue by copying the content of this file
and overriding the file /var/www/html/vendor/magento/module-catalog/Block/Adminhtml/Product/Helper/Form/Gallery/Content.php in my Magento 2.1.2 installation.
The issue has been released in 2.1.3
Cannot gather stats! Warning!stat(): stat failed for ..........
I am facing this issue in magento 2 and I checked it here https://github.com/magento/magento2/commit/2e03028f36f0f40910fd5fae2e16560bf42136d3
but it is not fixed and also I did that you told in above.
Please help me to fix this.
Seeing this locally too on 2.1.2 (instance has not had 2.1.3 (with fix) yet). Was able to temporarily resolve this with:
SET @file = '/T/E/TESTFILE%';
START TRANSACTION;
DELETE FROM catalog_product_entity_media_gallery WHERE value LIKE @file;
DELETE FROM catalog_product_entity_varchar WHERE value LIKE @file;
COMMIT;
FYI I was able to resolve this in our 2.1.2 install without overriding Magento files or making DB changes with the following alias:
alias fiximages='cd /path/to/docroot; mkdir -p pub/media/catalog/product; cp -r vendor/magento/sample-data-media/catalog/product/* pub/media/catalog/product; cd - 1> /dev/null'
Obviously I'm using sample data, but it should work with real data if you point to where the images are stored.
This is still happening in 2.1.7.
Congratulations people!
Most helpful comment
@thdoan I solved the issue by copying the content of this file
https://github.com/magento/magento2/blob/2db5aa15722307fb6ad703627933224f5f74bbe3/app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Gallery/Content.php
and overriding the file /var/www/html/vendor/magento/module-catalog/Block/Adminhtml/Product/Helper/Form/Gallery/Content.php in my Magento 2.1.2 installation.