Magestore_Giftvoucher not working after Supee 8788

Posted on October 26, 2016
Written by

Following various browser dropping Flash support, Magento have responded with a new module Mage_Uploader. This deprecates the class Mage_Adminhtml_Block_Media_Uploader

In the case of Magestore_Giftvoucher , the following error is now thrown :

Fatal error: Call to a member function setUrl() on null in …../public/app/code/local/Magestore/Giftvoucher/Block/Product/Upload.php on line 39

In order the resolve this bug you firstly need to extend from the new class Mage_Uploader_Block_Multiple  and add the following method to the file since this method no longer exists in the new class:

As of yet Magestore have not released a patch for this module. I’d obviously suggest rewriting this class correctly. Rather than modifying the module directly.