Magento – Magento 2.3.4 – infinite loop on checkout magento2magento2.3.4 I have upgraded from Magento CE 2.3.3 to 2.3.4 and on the checkout I get this error: Has anyone had this problem before? Theres nothing in the logs and I am on developer mode with debugging enabled. Best Answer Create custom class & copy required functionality of vendor/magento/module-checkout/model/Session.php class file of Magento 2.3.3 version in it. Then, use that custom class in Magento 2.3.4 version where you have added dependency of Magento\Checkout\Model\Session class file. Or you can use '\Magento\Checkout\Model\Cart' class file to get all visible items of cart. $this->cart->getCheckoutSession()->getQuote()->getAllVisibleItems(); Related SolutionsMagento 2 – How to Fix Checkout Infinite Loop solved changing this app/design/frontend/Altravista/bookshop/requirejs-config.js var config = { deps: [ 'js/custom' ], paths: { 'popper': 'js/bootstrap/popper.min', 'bootstrap': 'js/bootstrap/bootstrap.min' }, shim: { 'popper': { 'deps': ['jquery', 'bootstrap'], 'exports': 'Popper' }, 'bootstrap': { 'deps': ['jquery', 'popper'] } } }; with var config = { deps: [ 'js/custom' ], paths: { 'popper': 'js/bootstrap/popper.min', 'bootstrap': 'js/bootstrap/bootstrap.min' }, shim: { 'popper': { 'deps': ['jquery'], 'exports': 'Popper' }, 'bootstrap': { 'deps': ['jquery', 'popper'] } } }; remove bootstrap from popper shim Magento – Magento 2.3.4 – infinite loop on checkout buttons Delete your cookies and try again. Related TopicMagento 2.3.4 – Fix Infinite Loop Detected Exception on OPCMagento – Magento 2.3.4 PWA build errorMagento – Magento 2.3.4 – Checkout page showing empty
Best Answer
Create custom class & copy required functionality of vendor/magento/module-checkout/model/Session.php class file of Magento 2.3.3 version in it.
Then, use that custom class in Magento 2.3.4 version where you have added dependency of Magento\Checkout\Model\Session class file.
Or you can use '\Magento\Checkout\Model\Cart' class file to get all visible items of cart.