After installation Patch SUPEE-8788 in my Magento I have an error when I try to edit the product:

Fatal error: Call to a member function getUploaderConfig() on a non-object in /var/www/html/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery/Content.php on line 56

  • What page does this show up on? When you go to "catalog" > "manage products?" and select a product?
    – camdixon
    Commented Nov 7, 2016 at 12:37
  • Yes, Catalog --> Manage products
    – MalT
    Commented Nov 7, 2016 at 12:40
  • is your cache flushed and opcode cache?
    – MagenX
    Commented Nov 10, 2016 at 9:18
  • 2
    Possible duplicate of Security Patch SUPEE-8788 - Possible Problems? Commented Nov 26, 2016 at 12:53

3 Answers 3


Fixed - Image Upload issue after PATCH 8788 install of Magento version CE -

I was able to fix it,Please Follow following instruction.

Step >> 1: After installed security patch 8788 successfully, Please go to admin panel and flush all Magento cache. Then Logout your Admin Panel and Relogin to Admin Panel.

Step >> 2: Go to Index Management and select all reindex all data after flush all Magento cache once again.

Step >> 3: This very Important step, Delete your browser cache(Ctrl+shift+Delete) history clear all browsing data from browser including cookies.

Step >> 4: Go to Catalog >> Product Management , add new image of any product,now you can see everything work fine.


Details about the problem

SUPEE-8788 replaces the old flash uploader with a new uploader system that sits in Mage/Uploader module.

By default has got the following code in app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery/Content.php

        'images' => array(
            'label' => Mage::helper('adminhtml')->__('Images (.gif, .jpg, .png)'),
            'files' => array('*.gif', '*.jpg','*.jpeg', '*.png')

SUPEE-8788 replaces it with:


$browseConfig = $this->getUploader()->getButtonConfig();
        'accept' => $browseConfig->getMimeTypesByExtensions('gif, png, jpeg, jpg')

Debugging the issue

According to the error you're getting, SUPEE-8788 was properly applied as your code is trying to call getUploaderConfig which is a new method introduced by the patch.

This method is called on getUploader() which returns $this->getChild('uploader');

This child corresponds to the child set at the beginning of the _prepareLayout method:


In the case of this class, $this->_uploaderType is defined at the top:

protected $_uploaderType = 'uploader/multiple';

So the first thing I would check is to ensure that this file is available in your system, it should be under app/code/core/Mage/Uploader/Block/Multiple.php

Two possible cases:

  • it's not there. That would be definitely the cause of the problem but as SUPEE-8788 was applied it should be there. Maybe you're using a versioning system and that file was not committed ?
  • it's there. In that case open it and ensure it's not empty or it doesn't look broken.

If that file is there and does not look broken, there's several things you can do:

First, try to see what returns get_class($this->getLayout()->createBlock($this->_uploaderType)) . If it does not return Mage_Uploader_Block_Multiple that means you have another module that is using the uploader class name and thus must be refactored to be compatible with SUPEE-8788.

I know that the No Flash Uploader module has some compatibility issues with SUPEE-8788, see here: https://github.com/openstream/No-Flash-Image-Uploader/issues/18

Then, if you still haven't found any issue, you'll have to check that you don't have some custom adminhtml layout that remove the uploader child, use the following command in app/design/adminhtml/ to try to find out:

grep -ri "uploader" . | grep "layout"

In the list you get try to look for something like <remove name="uploader" />, that would be the cause.

Finally, the last thing that comes to my mind is that you have Compilation enabled and you did not recompile after applying the patch. To do so, go to System > Tools > Compilation and recompile.

  • 1
    recompile worked for me Commented Nov 16, 2016 at 6:03

Every time you install the patches, check the correctness of the file permissions.

example: sudo chown www-data:www-data magento-folder

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.