Simple Membership Plugin › Forums › Simple Membership Plugin › I’m getting Fatal error! Payment with ref_id swpm_xxxxx can’t be found
- This topic has 4 replies, 3 voices, and was last updated 2 years, 4 months ago by
admin.
-
AuthorPosts
-
January 30, 2024 at 8:40 pm #27642
YAL
ParticipantHowever, reloading the page works… the proper objects are created on Stripe’s side, and I end up with a new user on my WordPress website.
I’m on the default WordPress theme. I’ve also tried deactivating all the other plugins, it made no difference. I’m baffled.
Thanks.
January 31, 2024 at 12:19 am #27643The Assurer
ModeratorPlease enable the debug logs for SWPM and post the results, when the error occurs. Also, please ensure that you are running the latest downloadable version of SWPM. Finally, are you using any caching plugins?
February 1, 2024 at 12:14 am #27649admin
KeymasterThe most frequent reason for issues with Stripe subscription payment buttons often stems from an incomplete webhook configuration in your Stripe account. To ensure your webhooks are set up correctly, please consult the ‘Troubleshooting Section’ of our documentation. This section provides detailed steps to verify your webhook setup:
February 1, 2024 at 2:39 am #27651YAL
ParticipantI 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.
February 2, 2024 at 6:55 am #27655admin
KeymasterThe critical error message can be sometimes little bit misleading. Reset the error_log file of the site. Also reset the debug log file of the plugin. Then test out various functionality of the site to see if you have any new errors being generated. If not, then everything is likely working fine at the moment.
-
AuthorPosts
- You must be logged in to reply to this topic.