1

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?

0

Try clearing your cache manually first:

$ rm -rf var/cache/* var/page_cache/*

Then re-run image resizing:

$ bin/magento catalog:image:resize 
  • done that already! no luck. – Arsalan Ul Haq Aug 16 at 20:02
  • Did you use varnish or other http accelerator or cache app? You need to restart it as well. – Rendy Eko Prastiyo Aug 17 at 6:13
  • I use fastly cache, and and have purged that all. Also if I flush catalog images cache from admin, then all the product page images are lost and had to re-run image:resize command. But then again not all images are recovered. I magento is not generating cache for product pages or isn't using the correct path for cache images for product pages. – Arsalan Ul Haq Aug 17 at 6:51
  • So any other fix? – Arsalan Ul Haq Aug 17 at 10:00
0

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!

  • Had run this command already, it recovered some images but not all. The thing is, the same code and db are working fine on my staging server, the issue is only on live. Also if I flush images cache on live site, the images are gone again (this should not happen) and then are recovered by image:resize command. Also these all functionality are working fine on my staging site. – Arsalan Ul Haq Sep 18 at 8:19
0

have you managed to fix the error yet?

Please see your config in the theme you are using and make sure your source store's config is the same with your target's. You can refer to this: https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/themes/theme-images.html

Then run:

php bin/magento catalog:images:resize

Let me know if this helps!

  • 1
    Had run this command already, it recovered some images but not all. The thing is, the same code and db are working fine on my staging server, the issue is only on live. – Arsalan Ul Haq Sep 18 at 8:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.