Friday 21 October 2011

Magento: this.images.toJSON is not a function

If you can’t upload your images to product. And you get this error: {Object}.toJSON is not a function in firebug console. This issue will be fix easily if you add $H() to your object.

var myData = this.images.toJSON();


replace by:
   
var myData = $H(this.images).toJSON();

4 comments:

  1. thanks man, my updated magento version needed exactly that hack! Thanks!

    ReplyDelete
  2. thanks a lot!!!!!!! blessings

    ReplyDelete
  3. thanks. it solved the issue. but in magento admin panel loader image doesn't display.

    ReplyDelete
  4. solved this issue on magento 1.4.0.1 after security patch 6788

    ReplyDelete