Installation ofthe 3rdparty magemonkeymailchimp module in magento 1.7.0.2, 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
- Sometimes a blank page without any error message.
OR
Solution:
- 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));
$this->setCollection($collection);
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.