cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2: Product images not showing on Product detail page.

Magento 2: Product images not showing on Product detail page.

I upgrade the Magento version from 2.2.5 to 2.4. Product images are not showing on the Product detail page. 
Can someone please assist me to fix it? 

Advance thanks.
product.JPG

 

3 REPLIES 3

Re: Magento 2: Product images not showing on Product detail page.

There are many reasons that could be causing this issue, for ex :

  • On the Product Information page , In your admin backend, under 'Images', make sure the radio buttons have an image selected for 'Base Image', 'Small Image', 'Thumbnail', and that they aren't 'Excluded'.
  • Make sure the product images exist under /media/catalog/product/ (relative to your document root)
  • Make sure the /media directory is in your Apache web server's group. Magento also needs to be able to write to this directory, so you can run this command to set those permissions:
sudo chmod -R 775 /path/to/magento/media
  • In System->Configuration->General->Web , make sure "Base Media URL" is correct under both "Secure" and "Unsecure"

Product reference: Magento 2 Image Gallery by Landofcoder. I hope you like it!

Re: Magento 2: Product images not showing on Product detail page.

product images are still not showing. 
Is there any solution ?

Re: Magento 2: Product images not showing on Product detail page.

Hi @5e48be49ecff7,

 

Please run the following command line:

php bin/magento indexer:reindex

Hope this can help you! Let me know if you need further assistance.

__________

If issue solved, Click Kudos & Accept as Solution.

LitExtension - #1 Shopping Cart Migration Expert

LitExtension helps store owners and agencies migrate all important data from one eCommerce platform to another accurately, securely and at the highest speed.

Visit website: http://litextension.com/