Reputation: 1
magento 2 not loaded correct path for rendering images the correct path of image will be
'bit.ind.in/gogiyacards/pub/media/catalog/product/g/o/gogia-cards-banners-610-x-245-2.jpg'
but it will take
'bit.ind.in/gogiyacards/pub/media/catalog/product/cache/a90544bc52f002dbe888836e62d74d89/g/o/gogia-cards-banners-610-x-245-2.jpg'
It additionally add cache/a90544bc52f002dbe888836e62d74d89
please help me
Upvotes: 0
Views: 8082
Reputation: 1735
For non displaying of images, there can be the issue of cache and static files. you need to run the below commands after entering the magento root directory through putty.
1. php bin/magento cache:flush
2. php bin/magento setup:static-content:deploy
Once you run the above commands and all you images are available in the media folder, then refresh the page.
NOTE: You also need to check the right permissions to you media
folder if the above commands doesn't work.
Upvotes: 0