The question:
I can’t seem to see any of the upload of browse image buttons on my magento backend, I have tried Firefox and chrome with no luck. I get these errors in Firefox inspect element:
TypeError: flashPlugin is undefined flex.js:164:7
ReferenceError: id_a13736761dc61600b7a42cbca740d27f_UploaderJsObject is not defined
I found out that I should check these files exist but annoying they found.
/skin/adminhtml/default/default/media/uploader.swf
/skin/adminhtml/default/default/media/uploaderSingle.swf
/skin/adminhtml/default/default/media/editor.swf
/skin/adminhtml/default/default/media/flex.swf
/app/design/adminhtml/default/default/template/media/uploader.phtml
/app/design/adminhtml/default/default/template/media/editor.phtml
any other suggestions what could be the problem?
The Solutions:
Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.
Method 1
I wasn’t able to view the buttons last week. It was because Flash hadn’t been updated. So I suggest you make sure Flash is up-to-date first.
Other suggestions:
You could try restarting the browser
Or in the php.ini file change upload_max_filesize = 100 M to upload_max_filesize = 100M, (no space) or
Check if .gitignore is referencing media/ instead of /media/ or
Copy /app/design/adminhtml/default/default/template/dull from a fresh copy of magento
Method 2
That problem come up to me after Chrome update (Version 59). To solve this I just click in in Flash permissions.
Or enable Flash folloing this link
Method 3
I would say, that this code:
var version = false;
if (navigator.plugins != null && navigator.plugins.length > 0) {
if (navigator.mimeTypes && navigator.mimeTypes.length > 0) {
if (navigator.mimeTypes['application/x-shockwave-flash'] &&
!navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin) {
return false;
}
}
var flashPlugin = navigator.plugins['Shockwave Flash'] || navigator.plugins['Shockwave Flash 2.0'];
version = Flex.transformVersionToArray(flashPlugin.description);
} else {
version = Flex.transformVersionToArray(Flex._getFlashPlayerVersionAsActiveX());
}
only defines flashPlugin, when you have flash installed. Therefore is my conclusion: You don’t have flash installed.
Method 4
In my case, I fixed the issue by downloading the latest Adobe Flash Player
in the magento uploader.phtml
file it says this:
<?php echo Mage::helper('media')->__('This content requires last version of Adobe Flash Player. <a href="%s" rel="nofollow noreferrer noopener">Get Flash</a>', 'http://www.adobe.com/go/getflash/') ?>
I did that & the problem went away
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0