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

Error: Call to a member function resolve() on null in AddtoCartForm #474

Closed
kedarkhaire opened this issue Feb 8, 2024 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@kedarkhaire
Copy link
Collaborator

Description

Commerce module 2 latest releases (2.37 & 2.38) making issues on test cases as well as on the Add credit functionality.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to My Accounts > Balance & plans > Prepaid Plans
  2. Click on Add Credit present in Prepaid balance section for the currencies, which opens a modal and hit on checkout

Actual Behavior

WSOD is seen with this error in Logs Error: Call to a member function resolve() on null in Drupal\commerce_cart\Form\AddToCartForm->prepareOrderItem() (line 252 of /Users/kedark/Sites/localhost/null_compatibility/web/modules/contrib/commerce/modules/cart/src/Form/AddToCartForm.php).

Expected Behavior

Checkout page must be seen with the billing details with no errors.

Version Info

Issue occurs with commerce module with version 2.37 & 2.38.
Works fine with older (2.36 & lower) versions of commerce module.

@kedarkhaire kedarkhaire added the bug Something isn't working label Feb 8, 2024
@kedarkhaire kedarkhaire added this to the 2.1.2 milestone Feb 8, 2024
@kedarkhaire kedarkhaire self-assigned this Feb 8, 2024
@kedarkhaire
Copy link
Collaborator Author

Closing with PR #475

@kedarkhaire kedarkhaire removed this from the 2.1.2 milestone May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant