fbpx

Error after indexing after upgrade to 2.3.3 – porto theme magento 2

Recently we upgrade a store from Magento 2.3.0 to 2.3.3  and after reindexing Magento Product page showing this very strange error i manage to fix it while fixing i checked many blogs and sites but unfortunately none of the theme worked for me so managed to work my self and found the Fix for Error after indexing after upgrade to Magento 2.3.3

If you using porto theme & Magento 2.3.3 You may get similar error on product page

Fatal error: Uncaught TypeError: Argument 1 passed to MagentoCatalogModelResourceModelProductCollection::addIsSaleableAttributeToFilter() must be of the type array or null, integer given, called in /home/public_html/stag/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php on line 1582 and defined in /home/public_html/stag/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php:2475 Stack trace: #0 /home/public_html/stag/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php(1582): MagentoCatalogModelResourceModelProductCollection->addIsSaleableAttributeToFilter(1) #1 /home//public_html/stag/app/code/Smartwave/Porto/Helper/Data.php(143): MagentoCatalogModelResourceModelProductCollection->addAttributeToFilter(‘is_saleable’, 1, ‘left’) #2 /home/public_html/stag/app/code/Smartwave/Porto/Helper/Data.php(158): SmartwavePortoHelperData->getCategoryProductIds(Object(MagentoCatalogModelC in /home/public_html/stag/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php on line 2475

This error is not in magento but in your custom theme if you using porto theme then download this patch Porto Patch for Magento 2.3.3 and upload into your root directory refresh cache and try again it should work fine

if you using any other theme contact your theme developer to provide a patch for Magento 2.3.3

hope it solves your issue if not you can get in touch with us!

 

Download Patch now

Talk With Expert

Leave a Reply

Your email address will not be published. Required fields are marked *