Magento - Product Images not showing up in frontend

I am having an issue with product images showing up in the backend, but not on the frontend. This was working fine, but seemed to start being a problem after I set up a newsletter. The newsletter wasn’t sending correctly, so I set up a ping service to ping the cron.php file every five minutes. Since I set that up, the newsletter works great, but whenever you load a new product into the catalog, the images for that product show up in the backend, but not in the frontend.

Here are things that I have tried that didn’t work:

  • Erased the htaccess file from the “Media” folder
  • Deleted and cleared the cache
  • Rebuilt the indexes
  • Made sure my “Media” folder was writeable
  • Shrank the image to make sure it was below the correct file size limit
  • Made sure my memory in PHP was set to 128MB

After all of these things, it still is not working correctly, and I am at a bit of a loss.

I just checked to see if the image, after saving it in the backend, is showing up in the “Media” folder. Turns out that the image isn’t there. When I checked the database, the path to the image is there. So it looks like it is saving the path to the image, but not the image itself.

It also looks like it is trying to save the images in the media > catalog > products > cache folder instead of outside of the cache.

So I checked to see what the URL that the front end is trying to access is, and I get the following:

Then I checked to see what the URL that the back end is trying to access, and I get the following:

When I open my FTP program and browse to the front end image, the folder where the image is supposed to be is empty.

When I open my FTP program and browse to the back end image, the folder where the image is supposed to be has the image in it.

Any help would be much appreciated. This has become quite the urgent matter!

I personally do not upload the files to the media area, instead browse directly from your pc and upload.

The image problem can often arise if one of the folowing is happening:

The images are saved as anything but a jpeg file
The URL has a gap after it
The image is not checked to be on base, top and thumbnail in the back-end

I hope one of these may be the solution, if not best of luck, I will be interested to hear what it was.

Best

B

First, you don’t need a ping service for the cron.php, you should be able to just set it up using the server’s crontab or control panel cron job interface. Just google magento cron job setup.

Second, make sure that the radio buttons (Base Image, Thumbnail Image, Small Image) on the product image tab are set to one of your images as becbec says.

Magento will always create a image cache for your product images under:
[root]/media/catalog/product/cache/
where the images of the different sizes are going to be generated. Also, when you upload an image, magento will create its own image path under media/catalog/product/ creating folders using the first few letters/numbers of the image name.

HTH