diff -r magento.before-connection/app/code/community/Openlabs/OpenERPConnector/Model/Olcatalog/Products.php magento/app/code/community/Openlabs/OpenERPConnector/Model/Olcatalog/Products.php 204c204,205 < $product = $this->_getProduct($productId, $store); --- > // Magento 1.6.1 : $product = $this->_getProduct($productId, $store); > $product = Mage::getModel('catalog/product')->loadByAttribute('sku',$productId); // SFL diff -r magento.before-connection/app/code/core/Mage/Catalog/Model/Product/Attribute/Media/Api.php magento/app/code/core/Mage/Catalog/Model/Product/Attribute/Media/Api.php 131c131,132 < $fileContent = @base64_decode($data['file']['content'], true); --- > // Magento 1.6.1 : $fileContent = @base64_decode($data['file']['content'], true); > $fileContent = @base64_decode($data['file']['content'], false); // SFL 209c210,211 < $fileContent = @base64_decode($data['file']['content'], true); --- > // Magento 1.6.1 : $fileContent = @base64_decode($data['file']['content'], true); > $fileContent = @base64_decode($data['file']['content'], false); // SFL 398c399,400 < $product = Mage::helper('catalog/product')->getProduct($productId, $this->_getStoreId($store), $identifierType); --- > // Magento 1.6.1 : $product = Mage::helper('catalog/product')->getProduct($productId, $this->_getStoreId($store), $identifierType); > $product = Mage::getModel('catalog/product')->loadByAttribute('sku',$productId); // SFL 304c303,304 < $product = Mage::helper('catalog/product')->getProduct($productId, null, $identifierType); --- > // Magento 1.6.1 : $product = Mage::helper('catalog/product')->getProduct($productId, null, $identifierType); > $product = Mage::helper('catalog/product')->loadByAttribute('sku',$productId); // SFL