bluevisiontec / GoogleShoppingApi

Magento Module GoogleShoppingApi v2
Open Software License 3.0
69 stars 45 forks source link

Warning: Missing argument 2 #89

Closed joefulton closed 7 years ago

joefulton commented 7 years ago

Hi,

Thanks for creating this module. Works great but get the following error when I update a product after it has been successfully added to Google shopping:

Warning: Missing argument 2 for BlueVisionTec_GoogleShoppingApi_Model_Log::addSuccess(), called in /home/xxxxx/public_html/app/code/community/BlueVisionTec/GoogleShoppingApi/Model/MassOperations.php on line 178 and defined in /home/xxxxx/public_html/app/code/community/BlueVisionTec/GoogleShoppingApi/Model/Log.php on line 85

Joe

joefulton commented 7 years ago

Found the solution, in case anyone needs it I replaced lines 176, 177, 178, 179 in MassOperations.php with this:

$this->_getLogger()->addSuccess( Mage::helper('googleshoppingapi')->('Product synchronization with Google Shopping completed') , Mage::helper('googleshoppingapi')->('Total of %d items(s) have been deleted; total of %d items(s) have been updated.', $totalDeleted, $totalUpdated) );