SUPEE-8788 – How to fix the image uploader for not updated extensions

Few hours passed since the latest Magento Security Patch SUPEE-8788 was released and it is claiming the first victims: the images’ uploader used by the third parties Magento modules.

Although the new uploader has kept the original class name Mage_Adminhtml_Block_Cms_Wysiwyg_Images_Content_Uploader for compatibility purposes, the majority of the front-end code of the uploader was changed.
In fact, the javascript libraries used by the Uploader have been replaced, as well as the templates files used in the layout.

As we can see in the version of the file app/design/adminhtml/default/default/layout/cms.xml the uploader block is composed of two blocks now.

What was the main template of the uploader became the template of a child block. 
Similarly, in the  app/design/adminhtml/default/default/layout/main.xml layout file the old uploader javascript components have been replaced by the new ones.

Following this GitHub link, you can see the layout files changed by SUPEE-8788.

Magento layout files changed by supee-8788

This means that all the uploader blocks which use the old template will simply not work, displaying an empty space in a place where buttons used to be displayed (yeah, this looks very sad)

Missing buttons in the Magento uploader after SUPEE-8788

This is how a not fixed uploader appears after the SUPEE-8788 patch

Example: how I fixed the Revolution Slider extension?

As early mentioned, fixing the uploader functionality is quite easy. If you are too busy (or simply lazy)  here is the link to a patch to apply directly to your Magento application with Revolution Slider extension.

If you’re interested in a long (not so much uh..) explanation, here there is an instruction how to fix the Revolution Slider extension (version 5.2.5.1)!

Edit the file app/design/adminhtml/default/default/layout/nwdthemes/nwdrevslider.xml and replace the lines 53-55 (marked below)

With the new Magento uploader files provided by SUPEE-8788:

Then scroll down to line 126 and look for the adminhtml_images_index handle.
Here you have to replace the wysiwyg_images.uploader block with the new one included in the new version of Magento.

… becomes …

That’s all. Revolution Slider uploader is now fixed and working with the latest Magento Security Patch SUPEE-8788!

FacebookTwitterPinterest

Enzo Perrotta

Senior Magento Developer

Magento enthusiast, technology addicted and wasabi lover. I embrace the whole eCommerce ecosystem, I’m focused on both, front-end and back-end development.

  • Stefan Maier

    thanks a lot!

  • Yasser Lotfy

    Thanks, You really helped me 🙂