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

Guest checkout - No such entity with cartId = 0 #27542

Closed
abude opened this issue Apr 1, 2020 · 13 comments
Closed

Guest checkout - No such entity with cartId = 0 #27542

abude opened this issue Apr 1, 2020 · 13 comments
Labels
duplicate Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Reported on 2.3.4 Indicates original Magento version for the Issue report.

Comments

@abude
Copy link

abude commented Apr 1, 2020

Guest checkout is not working when creating an order from admin or frontend with the following error:
main.ERROR: No such entity with cartId = 0 [] []
Breaking the session at the same time, requiring the admin to login again after pressing "place order"

i already applied this: #25307, doesn't seem to fix the issue.

Preconditions (*)

  1. Magento 2.3.4
  2. PHP 7.2.28
  3. no extensions installed

Steps to reproduce (*)

[front-end]

  1. go to frontend and add a product to cart as guest
  2. go to checkout and fill in all the information
  3. choose payflow pro credit card to pay

[admin]

  1. go and create an order
  2. don't choose a customer, create a customer for guest checkout
  3. select a product and add it to cart, fill all the information for a guest email
  4. add credit card payflow pro, and press place order

Expected result (*)

  1. Transaction accepted or declined

Actual result (*)

[front-end]

  1. spinner shows on the screen and doesn't go off
  2. error in the system.log
    main.ERROR: No such entity with cartId = 0 [] []
  3. browser console, shows payflow/response 500 error

[admin]

  1. error in the system.log:
    main.ERROR: No such entity with cartId = 0 [] []
  2. logs out the admin.
  3. browser console, shows payflow/response 500 error
@m2-assistant
Copy link

m2-assistant bot commented Apr 1, 2020

Hi @abude. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

@abude do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?

  • yes
  • no

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Apr 1, 2020
@abude
Copy link
Author

abude commented Apr 1, 2020

@magento give me 2.4-develop instance - upcoming 2.4.x release

@magento-engcom-team
Copy link
Contributor

Hi @abude. Thank you for your request. I'm working on Magento 2.4-develop instance for you

@magento-engcom-team
Copy link
Contributor

Hi @abude, here is your Magento instance.
Admin access: https://i-27542-2-4-develop.instances.magento-community.engineering/admin_4b2d
Login: 2e4c6e93 Password: 7f5a2487551d
Instance will be terminated in up to 3 hours.

@abude
Copy link
Author

abude commented Apr 1, 2020

Honestly, i have no idea how can i test this using valid sandbox credentials on PayFlow Pro. without using the real data i have for my account. any ideas?

@dark2y
Copy link

dark2y commented Apr 2, 2020

This might be related to #26840

@krishprakash
Copy link

krishprakash commented Apr 3, 2020

Hi @abude. Thank you for your report.
Issue is similar to #26840 as commented by dark2y and it will be fixed in next 2.4.0 release
You can track the conversion from above link

@nitaipanda
Copy link

Guest checkout - No such entity with cartId = 141
image

how to solve this issue.i have use magento 2.3.5

@nitaipanda
Copy link

Please help me i can not find the solution.please help me

@nitaipanda
Copy link

image

@magento-engcom-team magento-engcom-team added the Reported on 2.3.4 Indicates original Magento version for the Issue report. label Nov 13, 2020
@portchris
Copy link

Be sure to check your theme directories for any mis-use of Magento_Customer/js/customer-data I have found on multiple occasions when debugging that many devs opt to manipulate customer data to achieve things. Here was one I found recently in the placeOrder: function () { method of a third-party payment gateway integration that had been internally manipulated within the theme:

var clearData = {
  'selectedShippingAddress': null,
  'shippingAddressFromData': null,
  'newCustomerShippingAddress': null,
  'selectedShippingRate': null,
  'selectedPaymentMethod': null,
  'selectedBillingAddress': null,
  'billingAddressFromData': null,
  'newCustomerBillingAddress': null
};
customerData.set('checkout-data', clearData);

So search app/design/frontend for Magento_Customer/js/customer-data and see what naughties pop-up!

@atty31
Copy link

atty31 commented May 28, 2021

I'm getting the same issue as @nitaipanda , just with another payment method. Any clue ? I have Magento 2.3.4

@pppwu
Copy link

pppwu commented Sep 15, 2021

@atty31
please check my comment here #5847 (comment)
hope this will help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Reported on 2.3.4 Indicates original Magento version for the Issue report.
Projects
None yet
Development

No branches or pull requests

8 participants