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

Crash on add to cart #2019

Open
yasirmturk opened this issue Nov 17, 2024 · 4 comments
Open

Crash on add to cart #2019

yasirmturk opened this issue Nov 17, 2024 · 4 comments
Labels
bug Something isn't working unconfirmed

Comments

@yasirmturk
Copy link
Contributor

  • Lunar version: 1.0.0-beta.5
  • Laravel Version: 11.31.0
  • PHP Version: 8.2.25
  • Database Driver & Version: 10.6.20-MariaDB

Expected Behaviour:

Product should be added to the cart

Actual Behaviour:

Crash with ErrorException Attempt to read property "id" on null

Steps To Reproduce:

Product created with 1 variant, 1 product option (Size) and one option (Small),
Add to Card on Product page

@yasirmturk yasirmturk added bug Something isn't working unconfirmed labels Nov 17, 2024
@yasirmturk
Copy link
Contributor Author

Once this crash happens, the app goes to unstable state, and now even the home page is not loading and crashes

Screenshot 2024-11-17 at 20 54 43

@yasirmturk
Copy link
Contributor Author

Underlying reason for this crash is that, Tax Zone is not set in the admin.

So the checkout does not work without setting tax zone while it is an optional configuration

Screenshot 2024-11-17 at 22 18 14

@gbaggaley
Copy link

Also getting this error and it was fixed by adding a tax zone.

@yasirmturk
Copy link
Contributor Author

Yes, adding tax zone fixes it but then it should be a mandatory configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

2 participants