Robin Williams
Robin Williams

Reputation: 101

Magento images not showing on front end

I'm using Magento 1.4. I have two website set up. If I upload images to Website A, they appear fine on both front and back end. If I upload or import images to Website B, they do not appear on the front end, only the backend. I'm completely stuck. I'm happy to provide any additional details that may be helpful, but am so frustrated I'm not sure what is necessary info to fix the problem. Thanks!

Upvotes: 10

Views: 52936

Answers (12)

Elzo Valugi
Elzo Valugi

Reputation: 27866

Try

  • deleting the cache
  • rebuilding indexes

Then:

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 775 {} \;

SSH from the root of magento, if you working live

Upvotes: 4

Mike
Mike

Reputation: 456

Recently I've had PNG images not show up on the front end (they show blank not placeholder) even though they show up fine in the back-end.

Re saving them as jpegs or saving them as PNG from a different editor fixed it.

Upvotes: 1

user2908424
user2908424

Reputation: 285

Just Rename your .htaccess file inside the /media directory to .htaccess-old. This will absolutely resolve your image issue. - See more at: http://www.viraljetani.com/programming/magento-images-not-appearing-on-frontend-as-well-as-backend-on-godaddy-server#sthash.Uxd9kXqI.dpuf

Upvotes: 6

Rakesh
Rakesh

Reputation: 746

Follow below instruction

  1. Go to 'Cache Storage Management' and click on 'Flush Magento Cache', 'Flush Cache Storage', 'Flush Catalog Images Cache' & 'Flush JavaScript/CSS Cache'
  2. Go to 'Index Management', click on 'Select All' and then select 'Reindex Data' from drop-down and submit.

Do this process 3-4 times, then have look at front-end with CTRL+F5. Now images will show-up. Make sure htaccess is in working mode.

Upvotes: 0

Jongosi
Jongosi

Reputation: 2355

Ensure also that your owner/group is correctly set for media files. For my server, this is apache/apache and we set the permissions like so:

$ chown -R apache:apache media/catalog/

Hope that helps someone. FYI: You might want to run Elzo's answer first to restore proper permissions then do the above.

Upvotes: 1

moonraking
moonraking

Reputation: 11

Or maybe the original uploaded images are to big! Try to keep them under 300kb.

Upvotes: 1

user1150218
user1150218

Reputation: 151

I had the same problem., After someone suggested delting the .htaccess file in /media (which is of course a bad idea) ich chekced all the parameters and found that both

Options All -Indexes

and

Options +FollowSymLinks

got me an error 500. commenting them out fixed the problem. I also replaced

Options +FollowSymLinks

with

 Options  +SymLinksIfOwnerMatch
 Options -MultiViews 

Upvotes: 15

emiliano
emiliano

Reputation: 19

go to : /public_html/media/catalog/product

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

Upvotes: 1

jamapag
jamapag

Reputation: 9318

If you use big images, try to increase 'memory_limit' parameter in your 'php.ini' file.

Upvotes: 3

modulaaron
modulaaron

Reputation: 2906

I recently had a 1950x1950px product photo that was visible in the admin panel but not on the front of the site. Reducing it to 1600x1600px and re-uploading it caused it to be visible in both locations.

Upvotes: 2

magneto
magneto

Reputation: 21

Try editing the correct "Store View" for that product.

Upvotes: 2

Nick
Nick

Reputation: 6965

Make sure your /media folder is writeable.

Upvotes: 5

Related Questions