Magento WizardNo joke, this website relaunches on 1st April. New look, new features!

Contact the site  Make Money

Image Upload Failure on Magento Product Page

 Add to Favourites  
(2 rating, 6 votes)
Loading ... Loading ...

We’ve have been informed of a problem in the Magento back-end, whereby users’ are having problems trying to upload images to a product. Unlike another error where the user cannot see the browse box after clicking “Browse” – this time, users are able to browse for the image and upload it – however the image just simply add itself to the image list.

Similarly, you may also find that if anything is clicked (aside from the left colun links), you may be booted out to the admin login screen. Once you re-log in you’ll find that image is nowhere to be seen – despite the fact that five seconds ago it says it was “uploaded”!

Firstly, make sure your media directory is Chmod’ed in FTP to 777, and similarly that all files in your Magento installation have the correct “owner” for the hosting account – ie: not “root”.

Secondly, the error could well be your PHP installation. You may simply need to create a php.ini file in your Magento folder which reads as follows:

1
2
3
4
magic_quotes_gpc = off
short_open_tag = on
extension=pdo.so
extension=pdo_mysql.so

If you do this and also ensure Safe Mode is enabled, you should successfully be able to upload images again!

  • Digg
  • del.icio.us
  • Facebook
  • Google
  • LinkedIn
  • Live
  • Reddit
  • StumbleUpon
  • Technorati
  • TwitThis

about the author

    This article was written by Sam Davis on January 14, 2009.
    Computing over a glass of Grenache Shiraz... again!
    Sam is the Editor of Blasted Thing. Contact Us

related articles

 Product Tags on Product Page - Video Guide
 Template Path Hints - Video Guide
 Disable Cache while developing your site - Video Guide
 Import/Export Data with Profiles - Video Guide
 Google Base Integration - Video Guide

comments

11 Responses to “Image Upload Failure on Magento Product Page”

  1. Wil Linssen on April 23rd, 2009

    I could kiss you. I’ve been struggling with this forever, and the php.ini file fixed it. Thanks!

  2. Anil Solanki on June 27th, 2009

    hello sir
    I m using php version 5.2 and i have also upload the php.ini file to change the magic_quotes_gpc = off
    short_open_tag = on
    extension=pdo.so
    extension=pdo_mysql.so

    but still now i m not able to upload the products image in magento if u have an solution to short out please send me mail as soon possible
    thanks
    with regards
    anil solanki

  3. maone on July 17th, 2009

    Working Great, Thanks so much. is that should i change the attribute to 755 again ?

  4. Anis on September 18th, 2009

    It Works, great man…. it was eating and your solution really worked… thanks…

  5. Raphael on October 23rd, 2009

    Hey guys!
    I couldn’t get it to work.
    I have tried everything from all the foruns: chmod 777, php.ini, uninstall flash player 10 and install 9, use IE 6 and 7, chrome, firefox, tried in xp and vista.
    I have done it all. The php error while trying to upload a product image still shows up.
    PLEASE!
    If anyone has a way to make it work, please tell me!
    I have this very important client and cant show the image products. I have spent mora than 30 hours reading foruns and testing stuff.

    My e-mail is raphael@vexelweb.com.br

    Thank you guys!!

  6. Grant on November 9th, 2009

    I am having this exact same problem, but the PHP settings and permissions all seem to be correct.

    Any suggestions would be most appreciated.

  7. Samuel on November 17th, 2009

    Dont work… i have try everything you say and its not working please update your post

  8. Shaun on November 18th, 2009

    Same problem for us and I cannot find anyone to help……great! If anyone can help I’d appreciate it.

  9. David on December 2nd, 2009

    Additional to not being able to upload additional images to products the magento system won’t delete existing images. Any ideas?

  10. steve on January 13th, 2010

    wowwwwwwwwwww Thanks!!!!!!!!!!!! u r a pro!!!

  11. sven on February 8th, 2010

    That’s all very well, It works! BUT were can we find these uploaded images in the back-end AND how to delete these files whenever they’re uploaded and used… I can’t find nor delete them… I can see the link to the file bud not where it been uploaded to (FTP file). when I have like 20 file uploaded, eachc about 20Mb, than I’ve got problems… (quota) …

    We are a small printing company

    How to fix?

Leave a Reply




Spam protection by WP Captcha-Free


Export List of Magento Orders in CSV Format

  • Sponsored Ads

  • Magento Themes
    • vtiger: great article, thank you....
  • Recent Tweets

    is it me, or is magento's setup quite a bitch?

    http://inchoo.net/ecommerce/magento/basic-php-stuff-every-frontend-magento-developer-should-know/

    #job - Find Opensource Projects: Joomla Magento Drupal WordPress ... (Max. $100) - http://webjobs.projectworm.com/t/1512142 #jobs

    Implementdo aqui na SLOTHZ - Informática, um sistema de e-Comercio, achei este site: http://migre.me/pZWb, bacana tem até Open #magento.

    magento template advices part 2 http://2twitt.com/24w