Skip to content

Development without media product images (using placeholders) [image stats] #5497

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

Closed
ppisarek opened this issue Jul 6, 2016 · 12 comments
Closed
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@ppisarek
Copy link

ppisarek commented Jul 6, 2016

Steps to reproduce

  1. Remove product image file
  2. Go to admin panel -> products -> catalog
  3. Edit product with placeholder image

Expected result

  1. View with placeholder image

Actual result

  1. Cannot gather stats! Warning!stat(): stat failed for /Volumes/Data/[...]/pub/media/catalog/product/p/o/poc.jpg
@antboiko
Copy link

antboiko commented Jul 7, 2016

Hi @ppisarek , thanks for reporting this. We already have internal ticket MAGETWO-54718 in our backlog to fix this issue.

Thanks,
Anton.

@antboiko antboiko added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development MX bug report labels Jul 7, 2016
@palamar
Copy link
Contributor

palamar commented Jul 15, 2016

The issue has been fixed in commits 2e03028, 3459ef1, 39d7f39, 16895be, 21dd4cc and should appear in develop branch at the nearest time.

@vzabaznov
Copy link
Contributor

#5184

mmansoor-magento pushed a commit that referenced this issue Sep 2, 2016
[EAST] MAGETWO-54718: [GitHub] Exception thrown where no Product Image file found #5184 #5497 #5871
@davideghz
Copy link

davideghz commented Dec 1, 2016

I still got same the error in Magento2.1

@thdoan
Copy link

thdoan commented Dec 2, 2016

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.

@davideghz
Copy link

@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.

okorshenko pushed a commit that referenced this issue Dec 14, 2016
- MAGETWO-54718: [GitHub] Exception thrown where no Product Image file found #5184 #5497 #5871

- (cherry picked from commit 1ef843d)
okorshenko pushed a commit that referenced this issue Dec 14, 2016
- MAGETWO-54718: [GitHub] Exception thrown where no Product Image file found #5184 #5497 #5871

- (cherry picked from commit 2240a1e)
okorshenko pushed a commit that referenced this issue Dec 14, 2016
- MAGETWO-54718: [GitHub] Exception thrown where no Product Image file found #5184 #5497 #5871

- (cherry picked from commit da52cad)
okorshenko pushed a commit that referenced this issue Dec 14, 2016
- MAGETWO-54718: [GitHub] Exception thrown where no Product Image file found #5184 #5497 #5871

- (cherry picked from commit 0bad8ab)
@elenleonova
Copy link

The issue has been released in 2.1.3

@pawanguleria911
Copy link

Cannot gather stats! Warning!stat(): stat failed for ..........
I am facing this issue in magento 2 and I checked it here 2e03028
but it is not fixed and also I did that you told in above.

Please help me to fix this.

@toddhainsworth
Copy link
Member

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;

@thdoan
Copy link

thdoan commented Feb 13, 2017

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.

@tomasinchoo
Copy link

This is still happening in 2.1.7.
Congratulations people!

@BB-000
Copy link

BB-000 commented Mar 14, 2022

This is still happening in 2.3.4..?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests