5

I'm uploading products to my Magento store but products are not being displayed.

I can upload the image using the admin area and when managing my products I can see the images there, but once I go to the front end I just get the Magento logo where the product image should appear.

This has been happening since my server migration so I'm not sure if its related or not.

7 Answers 7

7

There are many things that could be causing this issue, but here's a few things for you to look into:

  1. 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'

  2. Make sure the product images exist under /media/catalog/product/ (relative to your document root)

  3. Make sure the /media directory is in your Apache web server's group (usually 'www-data' or 'httpd'). 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
    
  4. In System->Configuration->General->Web, make sure "Base Media URL" is correct under both "Secure" and "Unsecure"

2
  • Hey brother, thanks a lot, this one did it, sorry, I'm a newbie whenit comes to Magento, this one fixed it: 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' Commented Sep 24, 2013 at 21:16
  • Sure thing. I accepted but can't upvote because it says that I need 15 reputation.... go figure..... anyway, thanks so much for your valuable response! Commented Sep 25, 2013 at 1:06
6

Just rename .htaccess to .htaccess-old inside media directory in Magento Root Directory.

1
  • This is not advisable since it will open security holes in your application. Commented May 5, 2016 at 10:11
3

You need to do the following to get this right:

  1. Recursively change permissions -r or via ftp set media folder to 777
  2. Make sure your server has curl, image gd enabled and refresh magento cache
2
  • Installing gd worked for me, you saved me a couple of hours, thank you
    – ononononon
    Commented May 3, 2016 at 11:47
  • 777 is not advisable in production environments and should be used very rarely. Commented May 5, 2016 at 10:13
0

Just adding more information to help: if your SELINUX is enabled, you need additional setup. Here you can find some information http://www.magentocommerce.com/knowledge-base/entry/ce18-and-ee113-installing#install-prereq-selinux

1
  • 1
    Note that link-only answers are discouraged, SO answers should be the end-point of a search for a solution (vs. yet another stopover of references, which tend to get stale over time). Please consider adding a stand-alone synopsis here, keeping the link as a reference.
    – kleopatra
    Commented Jan 19, 2014 at 23:53
0

try this code:- Might be you are not adding below line:-

$_product=Mage::getModel("catalog/product")->load($_product->getId());
1
  • 1
    This does not answer the question
    – Ejaz
    Commented Aug 25, 2016 at 22:41
0

Even though late, Hope it will help for someone

If its still not showing even after all the above tweaks. Try to reduce the size of the image to few KBs and try. It worked for Me.:)

0

For me the issue was php7.0-gd extension. Once I installed it image appears without a problem.

sudo apt-get install php7.0-gd

sudo service apache2 restart

Not the answer you're looking for? Browse other questions tagged or ask your own question.