Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Catalog\Model\ResourceModel\Product\Collection::addCategoryFilter() must be an instance of Magento\Catalog\Model\Category, null given, called in /home/hosting/agrigardengroup.com/www/app/code/Mageplaza/AutoRelated/Block/Product/Block.php on line 236 and defined in /home/hosting/agrigardengroup.com/www/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php:938 Stack trace: #0 /home/hosting/agrigardengroup.com/www/app/code/Mageplaza/AutoRelated/Block/Product/Block.php(236): Magento\Catalog\Model\ResourceModel\Product\Collection->addCategoryFilter(NULL) #1 /home/hosting/agrigardengroup.com/www/app/code/Mageplaza/AutoRelated/Block/Widget.php(60): Mageplaza\AutoRelated\Block\Product\Block->getProductCollection() #2 /home/hosting/agrigardengroup.com/www/app/design/frontend/Beecommerce/Agrigarden/Mageplaza_AutoRelated/templates/product/block.phtml(55): Mageplaza\AutoRelated\Block\Widget->getProductCollection() #3 /home/hosting/agrigardengroup.com/www in /home/hosting/agrigardengroup.com/www/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php on line 938