-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
This was originally reported by @airdrumz in #9276, but I think this problem deserves its own issue, otherwise it is going to get ignored.
Preconditions
- Magento 2.1.6
- PHP 7.0.18
Steps to reproduce
- Set up a brand new Magento 2.1.6 project
- Create a category
- Create a product, assign it to the new category, make sure you can see it on the frontend
- Assign an image to the product, and make it hidden by clicking it and checking 'Hide from Product Page' and save the product
- Go to the frontend and look at the product listing of the new category
Expected result
- Image on the product list is visible
Actual result
- A broken image on the product list
Discussion
This started happening after the decision to no longer generate resized images on the fly on the frontend in Magento 2.1.6. Images are now only being resized when a product is saved in the backend or by running the bin/magento catalog:images:resize
command.
Both of these can't fix this problem, so you are stuck with this problem.
There is a way to work around it, and that is to unhide the image, save the product, then hide it again. Then the resized image will be generated. But you can't expect shopowners to do this manually for thousands of products?
I think this is a pretty urgent bug, and should be fixed in the next minor release.