cancel
Showing results for 
Search instead for 
Did you mean: 

Cart crashes on out of stock item

Cart crashes on out of stock item

I'm testing version 2.1.7.  We ran into an issue where if someone puts an item in their cart for later and then it sells out, when they come back they cannot get back to the cart at all. 

 

I have literally disabled every single add on.  Theme, Mirasvit Search, Layered Navigation, and all add-ons are disabled, but this still happens.  Can anyone give me an idea where I might look?

 

Instead of seeing "This item is out of stock" as it does in my live version, the 2.1.7 cart looks like this:

 

 

1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): This product is out of stock.

Exception #0 (Magento\Framework\Exception\LocalizedException): This product is out of stock.
#0 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Quote/Model/Quote/Interceptor.php(947): Magento\Quote\Model\Quote->addProduct(Object(Magento\Catalog\Model\Product\Interceptor), Object(Magento\Framework\DataObject), 'full')
#1 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/module-quote/Model/Quote.php(1722): Magento\Quote\Model\Quote\Interceptor->addProduct(Object(Magento\Catalog\Model\Product\Interceptor), Object(Magento\Framework\DataObject))
#2 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Quote/Model/Quote/Interceptor.php(960): Magento\Quote\Model\Quote->updateItem('56132', Object(Magento\Framework\DataObject), NULL)
#3 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/module-quote/Model/Quote/Item/CartItemPersister.php(72): Magento\Quote\Model\Quote\Interceptor->updateItem('56132', Object(Magento\Framework\DataObject))
#4 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/module-quote/Model/QuoteRepository/SaveHandler.php(69): Magento\Quote\Model\Quote\Item\CartItemPersister->save(Object(Magento\Quote\Model\Quote\Interceptor), Object(Magento\Quote\Model\Quote\Item))
#5 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/module-quote/Model/QuoteRepository.php(161): Magento\Quote\Model\QuoteRepository\SaveHandler->save(Object(Magento\Quote\Model\Quote\Interceptor))
#6 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Quote/Model/QuoteRepository/Interceptor.php(76): Magento\Quote\Model\QuoteRepository->save(Object(Magento\Quote\Model\Quote\Interceptor))
#7 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/module-checkout/Model/Session.php(353): Magento\Quote\Model\QuoteRepository\Interceptor->save(Object(Magento\Quote\Model\Quote\Interceptor))
#8 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Checkout/Model/Session/Interceptor.php(102): Magento\Checkout\Model\Session->loadCustomerQuote()
#9 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/module-gift-message/Model/GiftMessageConfigProvider.php(155): Magento\Checkout\Model\Session\Interceptor->loadCustomerQuote()
#10 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/module-gift-message/Model/GiftMessageConfigProvider.php(106): Magento\GiftMessage\Model\GiftMessageConfigProvider->isQuoteVirtual()
#11 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/module-gift-message/Model/CompositeConfigProvider.php(33): Magento\GiftMessage\Model\GiftMessageConfigProvider->getConfig()
#12 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/module-gift-message/Block/Cart/GiftOptions.php(79): Magento\GiftMessage\Model\CompositeConfigProvider->getConfig()
#13 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/module-gift-message/view/frontend/templates/cart/gift_options.phtml(17): Magento\GiftMessage\Block\Cart\GiftOptions->getGiftOptionsConfigJson()
#14 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/chroot/home/fa...')
#15 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Element/Template.php(255): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\GiftMessage\Block\Cart\GiftOptions), '/chroot/home/fa...', Array)
#16 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Element/Template.php(279): Magento\Framework\View\Element\Template->fetchView('/chroot/home/fa...')
#17 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/module-backend/Block/Template.php(104): Magento\Framework\View\Element\Template->_toHtml()
#18 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Element/AbstractBlock.php(659): Magento\Backend\Block\Template->_toHtml()
#19 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Element\AbstractBlock->toHtml()
#20 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(518): Magento\Framework\View\Layout->_renderBlock('checkout.cart.o...')
#21 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('checkout.cart.o...')
#22 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('checkout.cart.o...')
#23 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('checkout.cart.o...', false)
#24 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Element/Text/ListText.php(26): Magento\Framework\View\Layout\Interceptor->renderElement('checkout.cart.o...', false)
#25 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Element/AbstractBlock.php(659): Magento\Framework\View\Element\Text\ListText->_toHtml()
#26 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Element\AbstractBlock->toHtml()
#27 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(518): Magento\Framework\View\Layout->_renderBlock('checkout.cart.o...')
#28 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('checkout.cart.o...')
#29 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('checkout.cart.o...')
#30 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('checkout.cart.o...', true)
#31 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Element/AbstractBlock.php(499): Magento\Framework\View\Layout\Interceptor->renderElement('checkout.cart.o...', true)
#32 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/module-checkout/view/frontend/templates/cart/form.phtml(65): Magento\Framework\View\Element\AbstractBlock->getChildHtml('checkout.cart.o...')
#33 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/chroot/home/fa...')
#34 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Element/Template.php(255): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Checkout\Block\Cart), '/chroot/home/fa...', Array)
#35 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Element/Template.php(279): Magento\Framework\View\Element\Template->fetchView('/chroot/home/fa...')
#36 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Element/AbstractBlock.php(659): Magento\Framework\View\Element\Template->_toHtml()
#37 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Element\AbstractBlock->toHtml()
#38 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(518): Magento\Framework\View\Layout->_renderBlock('checkout.cart.f...')
#39 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('checkout.cart.f...')
#40 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('checkout.cart.f...')
#41 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('checkout.cart.f...', true)
#42 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('checkout.cart.f...')
#43 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('checkout.cart.c...')
#44 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('checkout.cart.c...')
#45 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('checkout.cart.c...')
#46 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('checkout.cart.c...', true)
#47 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('checkout.cart.c...')
#48 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('checkout.cart.i...')
#49 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('checkout.cart.i...')
#50 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('checkout.cart.i...')
#51 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('checkout.cart.i...', true)
#52 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Element/AbstractBlock.php(499): Magento\Framework\View\Layout\Interceptor->renderElement('checkout.cart.i...', true)
#53 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/module-checkout/view/frontend/templates/cart.phtml(15): Magento\Framework\View\Element\AbstractBlock->getChildHtml('with-items')
#54 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/chroot/home/fa...')
#55 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Element/Template.php(255): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Checkout\Block\Cart), '/chroot/home/fa...', Array)
#56 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Element/Template.php(279): Magento\Framework\View\Element\Template->fetchView('/chroot/home/fa...')
#57 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Element/AbstractBlock.php(659): Magento\Framework\View\Element\Template->_toHtml()
#58 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Element\AbstractBlock->toHtml()
#59 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(518): Magento\Framework\View\Layout->_renderBlock('checkout.cart')
#60 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('checkout.cart')
#61 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('checkout.cart')
#62 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('checkout.cart', true)
#63 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('checkout.cart')
#64 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('content')
#65 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('content')
#66 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('content')
#67 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('content', true)
#68 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('content')
#69 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('main')
#70 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main')
#71 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main')
#72 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main', true)
#73 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('main')
#74 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('columns')
#75 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('columns')
#76 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('columns')
#77 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('columns', true)
#78 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('columns')
#79 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('main.content')
#80 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main.content')
#81 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main.content')
#82 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main.content', true)
#83 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('main.content')
#84 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('page.wrapper')
#85 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper')
#86 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.wrapper')
#87 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.wrapper', true)
#88 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout\Interceptor->renderElement('page.wrapper')
#89 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('root')
#90 /chroot/home/faeriesd/dev.faeriesdance.com/html/var/generation/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('root')
#91 /chroot/home/faeriesd/dev.faeriesdance.com/html/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('root')

 

4 REPLIES 4

Re: Cart crashes on out of stock item

Hi @FaeriesDance,

 

After you've disabled all those modules did you recompiled?

Re: Cart crashes on out of stock item

No, I didn't.  Thanks for the tip.

Re: Cart crashes on out of stock item

(Let us know if that did the trick)

Re: Cart crashes on out of stock item

Well, I disabled the suspected modules again and then recompiled and it killed the whole store.  We had to revert to a backup.  Probably me, as I'm literally just following the compilation instructions on the magento website.  Don't really know what each step is doing.  Anyway, still no solution found.  I hired someone from freelancer to take a look, and no result there yet, either.