Magento – Magento 2.3.2 wrong image cache path

cachemagento-upgrademagento2.3.2product-imagesproduct-page

Magento 2.3.2 upgrade after 2.2.6 having issue on product page. Images aren't appearing on product pages. The path coming is 404

/catalog/product/cache/50dd8aa5084eb9449e88d424223230cd/image/194413ea80/netgear-24-port-24-poe-4x-sfp-10-100-smart-switch-fs728tp-100eus-netfs728tpoer.jpg

However the correct path seems to be:

/catalog/product/cache/50dd8aa5084eb9449e88d424223230cd/n/e/netgear_ft728tp.jpg

Ran command catalog:image:resize, it recovered some product page images but not all.
Anybody faced same issue?

Best Answer

I had this exact same problem with Magento 2.3.2

For me it was product thumbnail images that had the wrong cache hash path. Product and category images were correct, but thumbs URL was incorrect and showing the std Magento image placeholder.

I was using a custom theme.

When using SHH "php bin/magento catalog:images:resize" - what was happening? The images were being generated using the Luma theme etc/view.xml instead of the custom theme etc/view.xml file.

The problem. When viewing my custom theme in the browser which users different size images to Luma theme, Magento could not fine the images and shows 404 error.

The fix. 1. Replace Luma themes etc/view.xml with my custom theme etc/view.xml 2. Using SHH run "php bin/magento catalog:images:resize

I took me a week to find out how to fix this, but it all work fine now. It's a Magento 2.3.2 bug i think!