Error message from 3rd party Ebizmart’s MagemonkeyMailchimpmodule in magento

Installation ofthe 3rdparty magemonkeymailchimp module in magento, results in an error message in backend tab “Newsletter->Mailchimp->Ecommerce 360 Orders ->Ecommerce360 API Orders”.

The error message can be;

  • Fatal Error: Unsupported operand types in Block/Adminhtml/Ecommerceapi/Grid.php on line 34
  • OR

  • Sometimes a blank page without any error message.


  • Go to app/code/community/Ebizmarts/MageMonkey/Block/Adminhtml/Ecommerceapi/Grid.php.
  • On line number 34, comment the below line and save. $orders += $result['data'];
  • Then the function will be like as:protected function _prepareCollection()
    $orders = array();
    foreach(Mage::app()->getStores() as $storeId => $store){
    $api = Mage::getModel('monkey/api', array('store' => $storeId));
    $result = $api->ecommOrders(0, 500);
    // $orders += $result['data'];

    $collection = Mage::getModel('monkey/custom_collection', array($orders));
    return parent::_prepareCollection();

  • Then go to backend “Newsletter->Mailchimp->Ecommerce 360 Orders ->Ecommerce360 API Orders” and test. You can see the Ecommerce360 API Orders grid there.
This entry was posted in Magento Developer Notes. Bookmark the permalink.

Leave a Reply

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