I Cant upload images in Magento after applying security patches. If I create new product and after entering the product details I go to images tab, I upload image after it stuck at uploading and shows an error message:

Fatal error: Class 'Varien_File_Uploader' not found in /chroot/mysite.com/html/releases/3/trunk/app/code/core/Mage/Core/Model/File/Uploader.php on line 36

3 Answers 3


If you have applied the patch SUPEE-8788, the Flash uploader has been replaced with a JS.

In Admin section: /app/design/adminhtml/default/default/layout/main.xml be sure that following line is there

<action method="addJs"><script>mage/adminhtml/uploader.js</script></action>

and in main template that following is not overwritten by another theme.

<action method="addJs"><name>lib/uploader/flow.min.js</name></action>
<action method="addJs"><name>lib/uploader/fusty-flow.js</name></action>
<action method="addJs"><name>lib/uploader/fusty-flow-factory.js</name>

if needed, remove


After this, flush your cache.

  • thank you for your reply. I have checked them they are all there. I tried to delete flexuploader.js but still same
    – ali
    Sep 6, 2018 at 6:24

If i use the google console i am getting this error

enter image description here


Problem Solved finally. I just replaced lib/varien/file/uploader.php with fresh one

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.