Magento product upload images are not appearing - image

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.

There are many things that could be causing this issue, but here's a few things for you to look into:
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'
Make sure the product images exist under /media/catalog/product/ (relative to your document root)
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
In System->Configuration->General->Web, make sure "Base Media URL" is correct under both "Secure" and "Unsecure"

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

You need to do the following to get this right:
Recursively change permissions -r or via ftp set media folder to 777
Make sure your server has curl, image gd enabled and refresh magento cache

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

try this code:-
Might be you are not adding below line:-
$_product=Mage::getModel("catalog/product")->load($_product->getId());

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.:)

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

Related

Product images no updating in Magento, staying as watermark

Having a bit of a weird bug in Magento that I can't quite figure out.
When trying to update product images in admin the images don't update on the frontend, instead the default 'no image' watermark appearing instead still.
What is odd though is that when I select 'Base image', 'Small image' & 'Thumbnail' then save the page refreshes and then only the thumbnail option is selected.
Not really sure what is causing this but to help solve it I have already done the following with no success:
Changed /media permissions to 777 recursively
Changed /media permissions to 755 recursively
Renamed .htaccess in /media
And after each of the above I have cleared all caches and restarted the server (just to be sure).
Also, /media is owned by www-data and PHP memory limit is 512MB (is that good?)
The site is Magento 1.9 CE on AWS ~100k products.
Thanks in advance for any help it's greatly appreciated!
You can set store scope in product page in admin panel and check for images and its options.

Magento : I am not able to upload picture when I add product

Error : Image type and information need to be specified for each store view.
I have tried cache clearing and it doesn't help for me.
I am using magento 1.8
just do below step as per link
http://mokamedia.ca/how-to-fix-image-type-and-information-needs-to-be-specified-for-each-store-view-in-magento-commerce/
Also try this
http://magentopaper.blogspot.in/2011/10/image-type-and-information-need-to-be.html
Try adding a php.ini file in your magento root directory and see whether it works:-
magic_quotes_gpc = off
short_open_tag = on
extension=pdo.so
extension=pdo_mysql.so
hope this will help you
I resolved this issue in 1.9.x using "Dull uploader" which removed the smart flash uploader in favor of a plain browser based file upload.
Image type and information need to be specified for each store view:
Go to File structure root/media/ dhl
Cut or delete the “dhl” folder from there.
Clear cache from Admin Panel and now do upload the images
Hope, Its working good.

Images not displaying in live website

I have live the magento version 1.6.1.0. Live website doesn't uploading the Product image and other images. Under Media folder no images are not displaying in website. I have changed the File Permissin to 755 and 644 but still the images are not displaying. Any one identify my problem and Provide solution for this..
Depending on your server configuration, permission 755 for media/ may not be enough.
If you uploaded Magento with your FTP user, this user is the owner of media/.
If your webserver user (the user which handles the HTTP requests, e.g. www-data) is not in the same user group, he won't have write access.
If you make the webserver user the owner of media/, should be enough.
If you put both users into the same group, permission 775 will suffice.
If this is not possible, you may change the permission for media/ to 777. Every user will be able to write to the directory. Try to avoid this because of security issues.
You may experience the same problem with the directory var/.
I've also had this issue, where Google Chrome would fail to upload images to my production site. I did as Matthias has suggested and ensured the permissions were set correctly...still had no luck.
I tried using Internet Explorer to upload the image and it worked. I suggest trying a different browser.
Magento uses Flash to perform the upload...if a different browser does not work, it might be that you do not have the latest version of the flash plugin? You can view which version you have by visiting Mozilla's plugin check. This works on all major browsers.
Finally, if none of this works for you, you can try the No Flash Image Uploader extension...

Cannot upload images when WordPress is sat on a virtual host configuration

This is my first post to this Forum, please forgive me if this has been answered elsewhere--I did search and was unable to find an answer to my particular problem, so any help would be greatly appreciated.
I am working on a WP site for a client who wants to upload images to new posts (who doesn't hey?). In setting up the site I have done the following:
1) Enabled File Upload by CHMOD default dir to 777.
2) Changed max file size.
3) Changed allowed filetypes to include necessary file types.
When I try to upload anything I get the following error:
“Bobst Expertfold 80 110 (Dec 2010).jpg” has failed to upload due to an error
The uploaded file could not be moved to /var/www/vhosts/glossopcartons.com/httpdocs/wp-content/uploads/2010/12.
The above error mentions 'glossopcartons.com', this WP site is actually sat on glossopcartons.co.uk. It's obvious that there is some kind of virtual host configuration going on and the image is trying to be uploaded to a folder on a different domain (glossopcartons.com instead of glossopcartons.co.uk).
I don't manage the hosting, I have just been assigned with the build. However, I have access to the plesk cpanel but I dont know what I need to do?
Does anyone know what is causing this problem? The site has actually been made live and this issue has been spotted after the launch(everything worked fine on the test server), and I am scratching my head trying to figure it out.
Is there something I can put in my wp-config.php or .htaccess file to tell WP to upload to a different location.
Any help would be greatly appreciated.
Dan
First thing is 777 permisions are too loose and will get you hacked; they should be no more than 755. Hardening WordPress « WordPress Codex
For the difference in URLs: that sounds like a DNS or virtual host config, but try adding the full URL path in Settings>>Media Settings. Might not work.
Why are there sites at both domains? Why not domain forward glossopcartons.com to glossopcartons.co.uk?
Make sure PHP lets you upload files larger than what you are trying to upload.
Experienced the same problem on several old sites. This problem occurs sporadically and is not commonly occuring on other websites on the same server
Try going to your "Media Settings" page... do you see a "Store uploads in this folder" option with a long path to your uploads folder? If so... this is your problem... WordPress 3.5+ does not seem to require this long path, but more of a site relative path (which is great!)
Change your "Store uploads in this folder" to "wp-content/uploads"... when you "save settings" you should see that field disapear entirely, never to bother us again ;-)
This occured for me when my hosting provider changed the folder structure on the server making this long URL incorrect. Therefore WordPress could not find the "uploads" directory at all.
Hope that helps...
Here's some things you might want to check in case your still having problems...
Update to WordPress 3.5 +
Update all plugins
Check file permissions 755 on the uploads dir/
Check PHP version

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!
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
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
Make sure your /media folder is writeable.
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
If you use big images, try to increase 'memory_limit' parameter in your 'php.ini' file.
Try editing the correct "Store View" for that product.
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.
go to : /public_html/media/catalog/product
rename all the capital letters to lower case. or the oposite.
Or maybe the original uploaded images are to big! Try to keep them under 300kb.
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.
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.
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.

Resources