Skip to content
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

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

Closed
ppisarek opened this Issue Jul 6, 2016 · 11 comments

Comments

Projects
10 participants
@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

This comment has been minimized.

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.

@palamar

This comment has been minimized.

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

This comment has been minimized.

Copy link
Contributor

vzabaznov commented Jul 21, 2016

mmansoor-magento pushed a commit that referenced this issue Sep 2, 2016

Volodymyr Klymenko
Merge pull request #309 from magento-east/pr-dev
[EAST] MAGETWO-54718: [GitHub] Exception thrown where no Product Image file found #5184 #5497 #5871
@davideghz

This comment has been minimized.

Copy link

davideghz commented Dec 1, 2016

I still got same the error in Magento2.1

@thdoan

This comment has been minimized.

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

This comment has been minimized.

Copy link

davideghz commented Dec 3, 2016

@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-55447: Portdown MAGETWO-54718 down to M2.1.x branch
- 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-55447: Portdown MAGETWO-54718 down to M2.1.x branch
- 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-55447: Portdown MAGETWO-54718 down to M2.1.x branch
- 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-55447: Portdown MAGETWO-54718 down to M2.1.x branch
- MAGETWO-54718: [GitHub] Exception thrown where no Product Image file found #5184 #5497 #5871

- (cherry picked from commit 0bad8ab)
@elenleonova

This comment has been minimized.

Copy link

elenleonova commented Dec 15, 2016

The issue has been released in 2.1.3

@pawanguleria911

This comment has been minimized.

Copy link

pawanguleria911 commented Jan 5, 2017

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

This comment has been minimized.

Copy link
Member

toddhainsworth commented Feb 10, 2017

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

This comment has been minimized.

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

This comment has been minimized.

Copy link

tomasinchoo commented Aug 3, 2017

This is still happening in 2.1.7.
Congratulations people!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.