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

Adding product to cart throws Attempt to read property "id" on null #93

Open
blursolo opened this issue Nov 5, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@blursolo
Copy link

blursolo commented Nov 5, 2024

  • Lunar version: 1.0.0-beta.4
  • Laravel Version: 10.48.22
  • PHP Version: 8.2
  • Database Driver & Version: MySQL

Expected Behaviour:

Product should be added to the cart.

Actual Behaviour:

Throws error:
Attempt to read property "id" on null

Steps To Reproduce:

I have installed StarterKit without seeding the database. I have created a product and a collection and assigned the product to the collection. In the frontend the Product is listed. When I visit the detail page and click on "Add to Cart" it throws the error:

Bildschirmfoto 2024-11-05 um 12 19 16
@blursolo blursolo added the bug Something isn't working label Nov 5, 2024
@glennjacobs
Copy link
Contributor

This looks like a starter kit issue, and should be raised on that repo instead.

@blursolo
Copy link
Author

blursolo commented Nov 5, 2024

I wasn't sure if this has to do with the starter kit but it probably makes sense to move it there.

@alecritson alecritson transferred this issue from lunarphp/lunar Nov 7, 2024
@yasirmturk
Copy link
Contributor

Seems related to lunarphp/lunar#2019

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

3 participants