Cannot Upload Images in Magento WYSIWYG Editor

back to tech articles
Magento Community Edition 1.7.0.2

Hopefully this will help someone else out there!

I’ve been trying to upload some images through the WYSIWYG editor in Magento for products, but clicking on the “source” image to open the Magento browse/upload window produces an alert window with the following message:

1
2
3
4
5
error: error in [unknown object].fireEvent():

event name: open_browser_callback

error message: string is not defined

After chasing this for ages, it turns out the error was a result of the agressive pursuit of speed. The js folder in Magento’s root folder on this site has been minified. That is to say, all the js files have been stripped of comments, white space, etc.

Somewhere in one of those files, an error was introduced which caused the fuss.

The Solution

Download the same version of Magento you have (1.7.0.2 in my case), and replace the js folder from the download into your Magento installation and come back to minification later on 😉

Note: create a backup of your current js folder, just in case. Delete it once you have confirmed the fix works.

Leave a Reply

Your email address will not be published. Required fields are marked *