I want to show my image on product page but its display nothing please check image error below
-
It clearly states the image is not in that directory. Some issue with the link building for img tag.– Abdul Samad AbbasiCommented Sep 3, 2021 at 11:27
-
@AbdulSamadAbbasi Image is same directory but i am getting this type error– MarkCommented Sep 3, 2021 at 11:31
-
You haven't added any image for this product from admin?– Abdul Samad AbbasiCommented Sep 3, 2021 at 11:34
-
I have added a product image but its showing blank in admin– MarkCommented Sep 3, 2021 at 11:35
-
I have added a product image please check above– MarkCommented Sep 3, 2021 at 11:45
|
Show 6 more comments
3 Answers
Have you check the webserver config
.htaccess
nginx.conf
https://devdocs.magento.com/guides/v2.4/install-gde/tutorials/change-docroot-to-pub.html
Also, don't forget to check the rewrite URL in stores > configuration > general > web
run below commands
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush
Please try below command. it can take time depend on your products/images.
php bin/magento catalog:images:resize