Magento Asked on February 16, 2021
When I run reindex command bin/magento index:reindex catalog_data_exporter_categories
I get the following error on console.
Argument 2 passed to MagentoCatalogBlockProductImageFactory::getLabel()
Kindly find the attached image.
I referred this LINK, but I didn’t got any solution.
Kindly guide me if anyone faced this issue.
Thanks in advance
Hey chris, hope you are doing well.
This is the issue related to theme. try this,
$collection = $this->_objectManager->create('MagentoCatalogModelResourceModelProductCollection');
$collection->addAttributeToFilter('is_saleable', 1, 'left')
The method addAttributeToFilter()
is expecting the 2nd parameter $condition
to be an array or null, but the theme obviously hasn't been updated. I've changed it from
**$collection->addAttributeToFilter('is_saleable', 1, 'left')**
to... note 1 -> [1]
**addAttributeToFilter('is_saleable', [1], 'left')**
This works:)
Answered by Munesh Jalwani on February 16, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP