-
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
Checkout/Cart visit results in error (500) after update 2.2.1 -> 2.2.2 #12655
Comments
This only happens if there are items in cart, once I delete them I see again a happy "empty cart"- kind of page. And not reproducibly so (well - only in a new incognito browser window it works fine). |
Facing same problem |
I can confirm the same problem arising on my magento2 installation after upgrading from 2.2.1 to 2.2.2. Downgrading back to 2.2.1 fixes the problem. |
I am having the same issue as well. |
I am having the same issue. Magento 2.2.2 upgraded from 2.1.9 Happens with new or logged customers Apache error log:
|
Same issue. Only happens when your logged into a customer account with items in your cart. |
I have this issue also if a payment failed after the customer returns to the cart page. |
I have this issue after upgrading to 2.2.2 as well. Only happens for logged in users. Creating a new user account works for a time and then starts failing. With PHP errors on the last output is:
Downgrading to 2.2.1 solved the problem. |
I am having the same issue. |
@JonnyStecchino, @mombrea, @friimaind, @fwolfst, @cmuench, @twa8000, @webazad, @darinda This was an issue which had been fixed since 2.1.7 but for some reason it was not merged to 2.2.*. Here is the fix for it aa535e. I've created a temporary plugin to fix this, so you could also do the same. |
@ferrazzuk Awesome. confirm that fix works. |
@ferrazzuk Hello, Can you add code of your plugin or link ? |
Hello,
|
Is there an estimated time for fix and release on this as its a pretty large issue, clearly affecting many people? Thanks |
I had the same issue and I have created a standalone magento module flancer32/mage2_fix_is12655 based on aa535e to fix it. |
@fwolfst, thank you for your report. |
We are facing the same issues on upgrade from m2.2.1 -> m2.2.2. |
Another confirmation that the issue exists and that @flancer64 's fix works perfectly. |
In my case the issue appeared after update from 2.1.9 to 2.2.3, @flancer64 's fix worked. |
Same issue here with 2.2.1 -> 2.2.3 @flancer64 is a star! |
Same issue here. Upon a closer look, I found some behavior in
I'm not sure if this is intentional or what the logic is behind this, but the last 2 lines should be re-evaluated, to consider the following:
I was able to solve my issue in a way different from @flancer64 by changing the totals collection call like so:
Alternatively you could return the prepared quote itself instead of reloading from the repository, but I'm unsure of the intention/design of this method to commit a save back on the record. I'd like to hear some thoughts from those more familiar with the architecture here. |
Still present in 2.3. #12993 |
Also experiencing this in 2.2.3 |
I am having this issue on checkout when user has an account for the first time then log out add to cart then at checkout enter email and password hit login I get exactly as described PHP Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Quote\Model\Cart\Totals::setExtensionAttributes() .... Is there a quick fix? |
@lano-vargas have you tried my suggested fix on the core? It would be the "quick fix." Short of that, you can do something as an extension, via plugins:
|
Working on #dmcdindia |
@popatkaran thank you for joining. Please accept team invitation here and self-assign the issue. |
Same issue v. 2.2.2, fixed with your module @flancer64 thank you! |
Thanks @flancer64 , Yous module fixed my issue in 2.2.3 :) |
I have tested this on various versions, including 2.2.3 and 2.3-develop, and confirmed that this issue has been fixed. Below are the relevant pull requests: Original fix in 2.1-develop (aa535e) CC @okorshenko |
Hi @RyanZolper Thank you for the research! 👍 |
Is this fixed in the latest versions? > 2.2.4? Just wondering if I would need to reapply the patch. |
Preconditions
Steps to reproduce
Expected result
Actual result
block-shipping
div nicely wrapped in a HTTP 500 response.The log shows:
The text was updated successfully, but these errors were encountered: