SUPEE-8788 Missing Upload Button Fix

UPDATE: 10/19/16. It also breaks your attribute editing in some instances:
http://magento.stackexchange.com/questions/53352/magento-1-9-no-upload-image-buttons
app/design/adminhtml/default/default/template/media/uploader.phtml

To fix the product image upload button not loaded in Magento CE 1.9.2.1, I had to add ' character in maxUploadFileSizeInBytes value.
 
Change
 
var maxUploadFileSizeInBytes = < ?php echo $this->getDataMaxSizeInBytes() ?>;
To
 
var maxUploadFileSizeInBytes = '< ?php echo $this->getDataMaxSizeInBytes() ?>';

After having applied the latest SUPEE-8788 patch to an Magento EE system, we noticed right away that the “upload” button was missing on the products WYSIWYG view.

Magento Support could find nothing wrong and at the time, no-one had an idea to fix it.

Inspecting the Javascript we saw we were getting the error: “uploader is not defined”.

The fix turned out to be extremely easy. Simply, flush every cache/combined JS files, re-index all (from CLI), log out of magento, and clear your browser cache. The upload button came back after doing that. We don’t think the browser cache is necessary, but since it was part of our routine that restored the button, we aren’t messing with the script.

Need Any Help? Contact Us!

Posted in Magento, Tech Tips Tagged with: , , , ,

Customer Love

I have known Jeremy for over 15 years and worked with him on several large projects. From sifting through Department of transportation records, search pa court records and county election records, he went beyond my expectations with every project. He is a dynamic thinker and help extract the most value out of the data. I highly recommend Jeremy for any large data project and his entrepreneurial insight.

- Greg Gennace ESQ