WordPress Membership Plugin
I somehow landed on the legacy version of instructions for creating the button, so my webhook was not set to the right events. I’m no longer getting the error that I did.
I tested with my admin password, and I saw in the logs that it was trying to update the membership level of my admin user:
[2024/01/31 20:59:44] – SUCCESS: Updating the current membership level (5) of this member to the newly paid level (5)
[2024/01/31 20:59:44] – SUCCESS: swpm_membership_level_changed action triggered. Member ID: 15, Old Level: 5, New Level: 5
[2024/01/31 20:59:44] – SUCCESS: The to (Level ID: 5) and from (Level ID: 5) values are the same. Nothing to do here.
Unfortunately, there seems to be a problem with this code because WordPress said there was a critical error, but I was not able to figure out where exactly.
When I tested with a *NEW* user, everything ran fine, so I’m going to mark this as “fixed” but see the problem above if an existing user tries to get an additional subscription.