cancel
Showing results for 
Search instead for 
Did you mean: 

Added the product image from admin side but not rendering the user side. How to fix it.

Added the product image from admin side but not rendering the user side. How to fix it.

product.jpg

4 REPLIES 4

Re: Added the product image from admin side but not rendering the user side. How to fix it.

Hi, also interested in

Re: Added the product image from admin side but not rendering the user side. How to fix it.

Hi @thilipraja0459 

 

Please run below commands if all images added in admin:

php bin/magento catalog:images:resize

Problem solved? Click Accept as Solution!

Re: Added the product image from admin side but not rendering the user side. How to fix it.

I already tried it. But its not working in my local. I've checked the image href, its passed wronglypath.jpg

Re: Added the product image from admin side but not rendering the user side. How to fix it.

Hello thilipraja0459,

 

If you are using the Magento platform for your e-commerce website, you might have encountered the not showing a product image issue on the user side.

 

However, there are some reasons that cause the issue to occur. You can follow the below methods to fix the "Added product image from admin side but not rendering the user side" issue:

 

Wrong Permissions to Folder:

 

The wrong permissions on your /media/ folder can also cause an error.

 

  • Firstly, ensure you have writable permissions on this folder. 
  • Next, change permissions to 777 recursively.
  • Now, you can do this using SSH via the below command.
chmod -R 777 media/
  • Lastly, execute it in the Magento directory.

 

 Media Folder Owned by Another User:

 

It can happen if you transfer your Magento store from one server to another. You can fix the issue by changing the ownership of the media folder.

 

  • Change the ownership of the /media/ folder.
  • You must execute the below code snippet,
chown -R {username}:{username} media/
  • Before changing ownership, ensure that the folder owner is the same user as your web server user.

The .htaccess file issue in your /media/ folder:

 

If there is a .htaccess file issue in your /media/ folder, then it can also be a reason for the issue's occurrence.

 

  • Firstly, navigate to your media folder.
  • Then, rename the original .htaccess file.
  • Lastly, execute the following command in Linux,

 

cd /media/
mv .htaccess .htaccess1

Low PHP Memory Limit:

 

PHP memory limit plays an essential role in resizing images in Magento 2. Thus, due to the low php memory limit, Magento 2 cannot resize your images and will display placeholder images.

 

Increase your PHP memory limit to fix the issue,

 

  • Firstly, open the .htaccess file and locate the following string:
php_value memory_limit 256M
  • Next, ensure that the value is at least 256M or better, 512M
  • Lastly, save the .htaccess file if edited the string value.

Wrong Attribute scope for small_image, thumbnail, base_image:

 

Oftenly Magento processes images incorrectly if they have scope=Store View, especially in multi-store installation cases. 

 

  • To fix the issue, you should open your Magento backend > Catalog > Attributes > Manage attributes
  • Next, locate the image, small_image & thumbnail attributes.
  • Then, ensure all the attributes have scope = Global.
  • Lastly, flush all cache in the Admin via the below command,
bin/magento cache:clean

 

I hope the above methods or fixes help you to fix the "not showing product image on the user side." issue.

 

----------------------

Regards,

Rex M

 

Problem solved? Click Accept as Solution!

 

AccuWeb Hosting | Magento Hosting