I update my shopping cart but it showing me fatal error:

enter image description here

Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Framework\Exception\InputException::__construct() must be an instance of Magento\Framework\Phrase, string given, 
called in /home/uscvuy8bk5zu/public_html/domain.name/vendor/magento/module-quote/Model/ShippingAddressManagement.php on line 121 
and defined in /home/uscvuy8bk5zu/public_html/domain.name/vendor/magento/framework/Exception/InputException.php:51
Stack trace: 
#0 /home/uscvuy8bk5zu/public_html/domain.name/vendor/magento/module-quote/Model/ShippingAddressManagement.php(121): Magento\Framework\Exception\InputException->__construct('Please note tha...') 
#1 /home/uscvuy8bk5zu/public_html/domain.name/vendor/magento/module-quote/Model/Quote/ShippingAssignment/ShippingProcessor.php(66): Magento\Quote\Model\ShippingAddressManagement->assign('15', Object(Magento\Quote\Model\Quote\Address)) 
#2 /home/uscvuy8bk5zu/public_html/domain.name/vendor/magento/module-quote/Model/Quote/ShippingAssignment/ShippingAssignmentPro in /home/uscvuy8bk5zu/public_html/domain.name/vendor/magento/framework/Exception/InputException.php on line 51
  • Were you trying to delete the last item in the cart ? Do you have **Minimum order amount ** set in the Admin configuration ?
    – nikin
    Dec 8, 2018 at 6:14
  • I have set "minimum Order amount" in the admin configuration.
    – kiran
    Dec 10, 2018 at 16:20
  • please compile once Dec 10, 2018 at 16:41

1 Answer 1


This is an existing issue with Magento 2.1 thats occurs when the minimum order amount is set in the admin configuration and when the user tries to remove the last item in the cart. Refer this link

One of the possible solutions is to follow the below steps.

Create a plugin

<type name="Magento\Quote\Model\Quote">
    <plugin name="min-orderamount-skip-delete" type="Namespace\ModuleName\Model\QuoteAfter" sortOrder="10"/>

Include the below after method in the newly created plugin class QuoteAfter.php

public function afterValidateMinimumAmount()
    $actionName = $this->request->getActionName();
    if($actionName === 'delete') {
        return true;
  • Hi Nikin, Can you explain in detail?
    – kiran
    Dec 10, 2018 at 16:59
  • Quick question before detailing it. Are you by any chance familiar with Magento 2 module development ( create a skeleton custom module and plugins) ?
    – nikin
    Dec 10, 2018 at 17:03
  • I am familiar with magento 2 module development and I saw this solution from above link: prntscr.com/lt6b77 but I didn't understand this.
    – kiran
    Dec 10, 2018 at 17:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.