Product images are not showing up in magento after installation/migration

04Mar11

This is a very common but annoying problem many of us face while working with magento. Sometimes we couldn’t really figure out what exactly is the problem. But don’t panic there are some simple check list which would make the product images displayed for all the products. I will start from the basics.

1.       Check if the correct product image is selected from the admin panel for the correct store view. All – base image, small images and thumbnails (in Catalog->Manage Products->Images).

2.       Disable the Magento cache(in System->Cache management) till you get everything working and Flush catalog image Cache.

3.       Change the attributes/permissions of the ‘media’ folder in your root to 755 or 777 recursively for the sub-folders and files. *

4.       During migration/installation through SSH, it’s normal that you make a zip of the media folder/entire magento  and unzip it in root. Usually this would be done by a root user or a user other than the ftp user. Then you should change the owner and usergroup of these folders/files recursively. If the owner of an image is root and if we try to access it, it won’t allow it. *

5.       If you use big images, try to increase ‘memory_limit’ parameter in your ‘php.ini’ file. Try to use images of size below 1000px. I don’t think we normally require one more than this. Also check if we can reduce the size of the image in kilobytes. Keep it less than 300kb.

*Changing the attributes/Permissions

All the FTP clients (fileZilla, cuteFTP etc) give you the option to change the file/folder attributes. Just right click on the folder and select the option change attributes/permissions. You can do it through shell also .

Command : chmod -R 777 /path/to/folder

*Changing the owner and user group of a folder

Login to linux shell and enter the following command.

Command : chown -R owner:group /path/to/folder

 

Hope this helps! Don’t forget to drop a comment if this helped you ;) . Also please let me know if you still have problems after trying out all these things. I can add it to the solutions list. :)

Advertisement


One Response to “Product images are not showing up in magento after installation/migration”

  1. /public_html/media/catalog/product

    rename all the capital letters to lower case. or the oposite.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.