Close

October 18, 2016

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-&gt;getDataMaxSizeInBytes() ?-->;
To
 
var maxUploadFileSizeInBytes = '<!--?php echo $this-&gt;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!


Fatal error: Uncaught Error: [] operator not supported for strings in /home/silvatec/public_html/wp-content/themes/layerswp/core/helpers/post.php:62 Stack trace: #0 /home/silvatec/public_html/wp-content/themes/layerswp/partials/content-single.php(81): layers_post_meta(3548) #1 /home/silvatec/public_html/wp-includes/template.php(690): require('/home/silvatec/...') #2 /home/silvatec/public_html/wp-includes/template.php(647): load_template('/home/silvatec/...', false) #3 /home/silvatec/public_html/wp-includes/general-template.php(167): locate_template(Array, true, false) #4 /home/silvatec/public_html/wp-content/themes/layerswp/single.php(20): get_template_part('partials/conten...', 'single') #5 /home/silvatec/public_html/wp-includes/template-loader.php(74): include('/home/silvatec/...') #6 /home/silvatec/public_html/wp-blog-header.php(19): require_once('/home/silvatec/...') #7 /home/silvatec/public_html/index.php(17): require('/home/silvatec/...') #8 {main} thrown in /home/silvatec/public_html/wp-content/themes/layerswp/core/helpers/post.php on line 62