I have a problem with product images. Although they're displaying correctly in the admin panel and on product page, for some reason they fail to load on category page. It looks like Magento can't generate an image in
pub/media/catalog/product/cache - but has no problem with that on product pages.
Does anyone have any idea why it may be happening? I already tried setting 777 permissions on
pub/media/catalog/product/cache, but that didn't solve the problem.