1

Uncaught TypeError: Argument 1 passed to Magento\Catalog\Model\ResourceModel\Product\Collection::addIsSaleableAttributeToFilter()

Does anyone have an idea about it ??

Hemangi Patel
  • 335
  • 2
  • 16

1 Answers1

1

Your theme is probably using somewhere 'addAttributeToFilter'

Something like this:

$collection->addAttributeToFilter('is_saleable', 1, 'left')

Change it to something like:

$collection->addAttributeToFilter('is_saleable', [1], 'left')

Best run search thru your modules and theme files with this addAttributeToFilter

Reference with simillar issue:

https://community.magento.com/t5/Magento-2-x-Technical-Issues/Error-after-indexing-after-upgrade-to-2-3-3/td-p/144500

BartZalas
  • 1,757
  • 12
  • 23