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

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

Open
3 tasks done
dwanjuki opened this issue May 3, 2024 · 0 comments
Open
3 tasks done

Comments

@dwanjuki
Copy link
Contributor

dwanjuki commented May 3, 2024

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]):

  • I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
  • This bug happens with a default WordPress theme active, or Memberlite.
  • I can reproduce this bug consistently using the steps above.

WordPress Environment

WP 6.5.2 PMPro 3.0.3 PMPro Group Accounts 1.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant