cancel
Showing results for 
Search instead for 
Did you mean: 

Missing product image cache folder in category view only

Missing product image cache folder in category view only

Hello,

 

i've installed magento 2.1.6 with sample data via composer on my local docker machine. Everything works fine but after clearing the image cache, the categories have no product images.

 

If i click on one of the products, the product view will load correctly. 

The Pathes:

# category_view (not show - 404 error)

.../pub/media/catalog/product/cache/f073062f50e48eb0f0998593e568d857/w/t/wt09-white_main.jpg

 

# product_view (show)

.../pub/media/catalog/product/cache/75eed2686e01eb22cb4050b2f40ddf97/w/t/wt09-white_main.jpg

 

The cache folder "f073062f50e48eb0f0998593e568d857" is called but not created. All other cache folders created correctly... Does anyone have the same issue or maybe a solution?

 

Thanks

3 REPLIES

Re: Missing product image cache folder in category view only

I have similar issue. I installed Magento 2.1.6 on XAMPP on Windows.

Folders with image cache are not created at all, and Magento tries to load images from this URL, for example:

 

http://localhost/xxx/pub/media/catalog/product\cache\f073062f50e48eb0f09af8593e568d857\/w/s/ws01-black_main.jpg 

 

So it looks like even the generated URL is incorrect.

 

In the live demo the URL looks like this:

http: / / magento2-demo.nexcess.net/pub/media/catalog/product/cache/1/small_image/240x300/beff4985b56e3afdbeabfc89641a4582/w/s/ws01-black_main.jpg

Re: Missing product image cache folder in category view only

It's a new "feature" of Magento 2.1.6. Images are not cached anymore after a visitor views a product page. Images are cached when a product is saved in the back-end.

 

If you flush the catalog image cache, images will be broken in category view. You either need to:

a) go in each product in the Admin and click save (ok if you have a very low number of products)

b) run the "bin/magento catalog:images:resize" command while in Developer mode. This can take more than 1 hour. This will create the cached version of all images in over 30 different sizes (thumbnail, base, thumbnail for wishlist, thumb for related products, etc.).

 

This has created a big problem for me as it increases the inode usage drastically.

 

You should also read the problem related to batch resizing in 2.1.6: http://devdocs.magento.com/guides/v2.1/release-notes/tech_bull_216-imageresize.html

 

Re: Missing product image cache folder in category view only

Have you find a solution yet as I have the exact same issue as you do.
Inodes are going thru the roof when I run the resize command.