Magento 2.2.7

Getting this error in the error_log and customer get's white screen when trying to login to site,

Fatal error: Uncaught Error: Call to a member function getValue() on null in 
Stack trace: 
#0 /home/website/public_html/vendor/magento/module-catalog/Model/Product.php(1926): Magento\Bundle\Model\Product\Type->getWeight(Object(Magento\Catalog\Model\Product\Interceptor)) 
#1 /home/website/public_html/generated/code/Magento/Catalog/Model/Product/Interceptor.php(1259): Magento\Catalog\Model\Product->getWeight() 
#2 /home/website/public_html/vendor/magento/module-quote/Model/Quote/Item.php(433): Magento\Catalog\Model\Product\Interceptor->getWeight() 
#3 /home/website/public_html/generated/code/Magento/Quote/Model/Quote/Item/Interceptor.php(128): Magento\Quote\Model\Quote\Item->setProduct(Object(Magento\Catalog\Model\Product\Interceptor)) 
#4 /home/website/public_html/vendor/magento/module-quote/Model/ResourceModel/Quote/Item/Collection.php(275): Magento\Quote\Model\Quote\Item\Interceptor->setProduct(Object(Magento\Catalog\Mode in /home/website/public_html/vendor/magento/module-bundle/Model/Product/Type.php on line 338

Any help would be appreciated. Not sure where this is coming from, all of the products have a weight set.

  • do you have custom module that extends the module-bundle?
    – fmsthird
    Feb 22, 2019 at 23:45

1 Answer 1


This ended up being an old migrated row in the quote table from the M1 to M2 migration. Deleting that row removed the error for the specific customer account.

  • how did you get to know which row is older in the quote table? Oct 27, 2020 at 10:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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