Skip to content
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

Type error in Cart/Totals #12993

Closed
andrewhowdencom opened this issue Jan 4, 2018 · 5 comments
Closed

Type error in Cart/Totals #12993

andrewhowdencom opened this issue Jan 4, 2018 · 5 comments
Assignees
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@andrewhowdencom
Copy link
Contributor

Preconditions

  1. Magento 2.2.2
  2. PHP 7.1

Steps to reproduce

  1. ??? no idea yet

Expected result

  1. No error logs

Actual result

PHP 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 /var/www/clones/7.8.1/vendor/magento/framework/Api/DataObjectHelper.php on line 125 and defined in /var/www/clones/7.8.1/vendor/magento/module-quote/Model/Cart/Totals.php:592
Stack trace:
                                                    #0 /var/www/clones/7.8.1/vendor/magento/framework/Api/DataObjectHelper.php(125): Magento\Quote\Model\Cart\Totals->setExtensionAttributes(Object(Magento\Quote\Api\Data\AddressExtension))
                                                    #1 /var/www/clones/7.8.1/vendor/magento/framework/Api/DataObjectHelper.php(85): Magento\Framework\Api\DataObjectHelper->_setDataValues(Object(Magento\Quote\Model\Cart\Totals), Array, 'Magento\\Quote\\A...')
                                                    #2 /var/www/clones/7.8.1/vendor/magento/module-quote/Model/Cart/CartTotalRepository.php(103): Magento\Framework\Api\DataObjectHelper->populateWithArray(Object(Magento\Q

Stubbing this here in case someone else sees this and has more of an idea.

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Jan 4, 2018
@codekipple
Copy link

This is a duplicate of this issue #9646
which has been fixed by this commit - https://github.com/ekuusela/magento2/commit/aa535ea5d4bf78915bddd4387a9d3c4b39943eea
But which is not included in 2.2.2

I've applied the commit manually to my magento store running 2.2.2 and it has fixed the issue for me.

@magento-engcom-team
Copy link
Contributor

@andrewhowdencom, thank you for your report.
We've created internal ticket(s) MAGETWO-86420 to track progress on the issue.

@magento-engcom-team magento-engcom-team added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed labels Jan 5, 2018
@p-bystritsky p-bystritsky self-assigned this Jan 9, 2018
@ishakhsuvarov
Copy link
Contributor

Hi @andrewhowdencom. Thank you for your report.
The issue has been fixed in magento-engcom/magento2ce#1186 by @p-bystritsky in 2.2-develop branch
Related commit(s):

The fix will be available with the upcoming patch release.

@vbuck
Copy link

vbuck commented Mar 14, 2018

@magento-engcom-team magento-engcom-team added the Fixed in 2.3.x The issue has been fixed in 2.3 release line label Aug 19, 2018
@magento-engcom-team
Copy link
Contributor

Hi @andrewhowdencom. Thank you for your report.
The issue has been fixed in #17620 by @nmalevanec in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming 2.3.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests

6 participants