-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CartTotalRepository cannot handle extension attributes in quote addresses #9646
Comments
- Merge Pull Request #9647 from ekuusela/magento2:patch-1
[EngCom] Public Pull Requests - 2.1 - MAGETWO-69238: Keep transparency when resizing images [2.1 backport] #9662 - MAGETWO-69236: Add configurations for change email templates [2.1 backport] #9661 - MAGETWO-69235: Do not di:compile tests/ folder #9660 - MAGETWO-69223 Fix for #9646 #9647 - MAGETWO-69234: Backport of MAGETWO-69152: Removed workaround for old Webkit bug #9655
Internal ticket to track issue progress: MAGETWO-69223 |
Hi @ekuusela |
This issue still exist - #14171 |
This issue still exists in Magento 2.2.3 |
This is still happening in Magento 2.2.3 |
Still experiencing in Magento 2.2.2 |
This seems to be still happening in M2.2.3. This is the response I got: {"messages":{"error":[{"code":500,"message":"Fatal Error: 'Uncaught TypeError: Argument 1 passed to Magento\Quote\Model\Cart\Totals::setExtensionAttributes() must be an instance of Magento\Quote\Api\Data\TotalsExtensionInterface, instance of Magento\Quote\Api\Data\AddressExtension given, called in /home/hyperst1/public_html/vendor/magento/framework/Api/DataObjectHelper.php on line 125 and defined in /home/hyperst1/public_html/vendor/magento/module-quote/Model/Cart/Totals.php:592\nStack trace:\n#0 /home/hyperst1/public_html/vendor/magento/framework/Api/DataObjectHelper.php(125): Magento\Quote\Model\Cart\Totals->setExtensionAttributes(Object(Magento\Quote\Api\Data\AddressExtension))\n#1 /home/hyperst1/public_html/vendor/magento/framework/Api/DataObjectHelper.php(85): Magento\Framework\Api\DataObjectHelper->_setDataValues(Object(Magento\Quote\Model\Cart\Totals), Array, 'Magento\\Quote\\A...')\n#2 /home/hyperst1/public_html/vendor/magento/module-quote/Model/Cart/CartTotalRepository.php(103): Magento\Framework\Api\DataObjectHelper->populateWithArray(Object(Magento\Quote\Model' in '/home/hyperst1/public_html/vendor/magento/module-quote/Model/Cart/Totals.php' on line 592","trace":"Trace is not available."}]}} |
Still in Magento 2.2.3 clear installation |
Extension attributes in quote billing or shipping addresses cause Magento\Quote\Model\Cart\CartTotalRepository::get to throw this error:
This happens for example when /carts/mine/payment-information is requested while modifying billing address during checkout.
Here's a similar issue with adding extension attributes to CartItemInterface: #3640
Preconditions
Steps to reproduce
Assuming extension attributes for the quote billing address have been defined
Expected result
Actual result
The text was updated successfully, but these errors were encountered: