cancel
Showing results for 
Search instead for 
Did you mean: 

product images showing in godaddy install but not on localhost

product images showing in godaddy install but not on localhost

Hi,

I took a backup of my godaddy magento 2.1.6 code and db and installed it on local machine. The home page works find and the banner images load. However, the product pictures don't show up when i visit the category pages or the product details page. On the category pages its just a blank where the products should be listed, and on the product pages, its place holder images. 

The godaddy install is on linux and local machine is on windows. Does that have anything to do with this? Any corresponding change i need to do?

 

Warm Regards,

Abhishek

1 REPLY 1

Re: product images showing in godaddy install but not on localhost

Hi @Abhishek260

 

There should be a two reasons for this.

 

Firstly check the pub/media directory is there and in that images are there or not ? it might be corrupted when you have taken a backup of the existing magento

 

Check the permission and ownership of pub/media directory it should be writable.

 

Also run this command - php bin/magento catalog:images:resize and then check.

 

For more reference of this issue below i am sharing two links which helps you on the same !

 

https://community.magento.com/t5/Magento-2-x-Technical-Issues/Magento-2-product-images-not-displayin...

 

https://magento.stackexchange.com/questions/140009/magento-2-product-images-not-showing-2-different-...

 

 

Hope it helps !

 

if issue solved,Click Kudos & Accept as Solution