Skip to content

Regression bug in Magento 2.1.6 - hidden images used on the product listing never get generated #9498

@hostep

Description

@hostep

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

  1. Magento 2.1.6
  2. PHP 7.0.18

Steps to reproduce

  1. Set up a brand new Magento 2.1.6 project
  2. Create a category
  3. Create a product, assign it to the new category, make sure you can see it on the frontend
  4. Assign an image to the product, and make it hidden by clicking it and checking 'Hide from Product Page' and save the product
  5. Go to the frontend and look at the product listing of the new category

Expected result

  1. Image on the product list is visible

Actual result

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions