Recently I have just upgraded Magento to the latest version 2.4.5.
After completing the upgrade successfully and when I try to run the CLI command it will throw an error.
Cannot instantiate interface Klevu\Search\Api\Service\Catalog\Product\StockServiceInterface#0 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Klevu\\Search\\Ap...') #1 /var/www/html/vendor/klevu/module-productsearch/Helper/Stock.php(29): Magento\Framework\ObjectManager\ObjectManager->get('Klevu\\Search\\Ap...')
In My case, I have enabled the Redis session and that will cause the issue. Continue reading “How to fix Magento Upgrade error Cannot instantiate interface while running CLI command?”