Question

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 
/home/website/public_html/vendor/magento/module-bundle/Model/Product/Type.php:338 
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.

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top