strangerstudios / pmpro-group-accounts

Sell memberships to corporate organizations, families, teams, or any group of people where one member pays for a collection of people to access your content individually.
https://www.paidmembershipspro.com/add-ons/group-accounts/
0 stars 5 forks source link

Applying an invalid Group Code at checkout triggers a fatal error #41

Open dwanjuki opened 4 months ago

dwanjuki commented 4 months ago

Describe the bug Applying an invalid Group Code at checkout triggers a fatal error: Uncaught Error: Call to a member function can_claim_level() on null

To Reproduce Steps to reproduce the behavior:

  1. Create a child group level.
  2. Go to child level checkout.
  3. Enter a code that doesn't exist e.g., abcde, and click Apply Code
  4. See error

Isolating the problem (mark completed items with an [x]):

WordPress Environment

WP 6.5.2 PMPro 3.0.3 PMPro Group Accounts 1.0.1