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!
问题:
回答1:
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
回答2:
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
回答3:
Make sure your /media folder is writeable.
回答4:
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
回答5:
If you use big images, try to increase 'memory_limit' parameter in your 'php.ini' file.
回答6:
Try editing the correct "Store View" for that product.
回答7:
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.
回答8:
go to : /public_html/media/catalog/product
rename all the capital letters to lower case. or the oposite.
回答9:
Or maybe the original uploaded images are to big! Try to keep them under 300kb.
回答10:
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.
回答11:
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.
回答12:
Follow below instruction
- Go to 'Cache Storage Management' and click on 'Flush Magento Cache', 'Flush Cache Storage', 'Flush Catalog Images Cache' & 'Flush JavaScript/CSS Cache'
- 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.