I have a Magento CE site that was just installed on a Cpanel VPS. Our issue is the site is working fine all except when we go to replace a product image we go to the Magento admin page for a specific product and upload an image using the images tab section in the products admin page. The image gets uploaded and when I move my mouse over it I can see the image just fine.

However, if I now look at the product on the front end of the website the image is just showing the gray Magento logo type image and not the image I uploaded. I also can view the source on the front-end and see the URL for the image is http://www.******.com/media/catalog/product/cache/1/image/800x608.191808192/9df78eab33525d08d6e5fb8d27136e95/v/h/newimag.jpg and if I go to that location on the server I do not see the image newimag.jpg ?? So it seems to not really be fully uploaded and I am not sure why.

I made sure all the media and sub directories have a permission of 0777 I cleared the Magento cache and re-indexed | I cleared my browser cache

I am not sure what else to do to fix it. When I view the console in Google Chrome I see the below message

coolsocks_multipack:63 Uncaught TypeError: Product.ConfigurableSwatches is not a constructor

The entire directory path exsists but the image does not seem to be making it into the folder? So in my above example url http://www.******.com/media/catalog/product/cache/1/image/800x608.191808192/9df78eab33525d08d6e5fb8d27136e95/v/h/ I do not see the image named newimag.jpg .

  • is directory /media/catalog/product/cache/1/image/ exists ? which part of the full path to the image on filesystem does not exist ?
    – Ilja
    Commented Aug 9, 2016 at 17:33

2 Answers 2


take a look in app/code/core/Mage/Adminhtml/controllers/Catalog/Product/GalleryController.php file in the uploadAction function of Mage_Adminhtml_Catalog_Product_GalleryController class, if you debug there you should figure out why the final file is not written into destination:

        $result = $uploader->save(

Looks like it is a permission issue, follow this link to set the correct permission http://devdocs.magento.com/guides/m1x/install/installer-privileges_after.html


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.