Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] Active subscription not detected even if the subscription is active

Simple Membership Plugin › Forums › Simple Membership Plugin › Active subscription not detected even if the subscription is active

  • This topic has 10 replies, 3 voices, and was last updated 2 years, 5 months ago by Sonjoe.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • April 26, 2024 at 8:14 pm #27972
    Sonjoe
    Participant

    Hi,

    i have (in test mode) active two recurring subscriptions.

    Created a page with shortcode: [swpm_show_subscriptions_and_cancel_link] but the page for logged-in user with active subscription show an alert “Active subscription not detected for the member account with the username: anna”

    I have checked the Stripe API ID of the plan and is starting with “price_”. Right now i do not know where is the problem and can’t cancel the subscription.

    Can you help me with settings, please?

    Thank you

    April 26, 2024 at 8:47 pm #27974
    Sonjoe
    Participant

    On the other member profile, the alert show this message:

    Error: Stripe API keys are not configured on your site!
    Active subscription not detected for the member account with the username: arnold

    I have the API keys configured, the subscriptions works, recurring payments works. Only this subscription and cancel shortcode does not work.

    Thanks for help πŸ™‚

    April 26, 2024 at 8:59 pm #27976
    Sonjoe
    Participant

    If i use this shortcode [swpm_stripe_subscription_cancel_link] and click on Cancel subscription, there is a Fatal error:

    Fatal error: Uncaught Error: Call to undefined method SWPM_Utils_Subscriptions::load() in /devel/wp-content/plugins/simple-membership/classes/class.swpm-wp-loaded-tasks.php:28 Stack trace: #0 /devel/wp-content/plugins/simple-membership/classes/class.simple-wp-membership.php(817): SwpmWpLoadedTasks->do_wp_loaded_tasks() #1 /devel/wp-includes/class-wp-hook.php(324): SimpleWpMembership->handle_wp_loaded_tasks() #2 /devel/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /devel/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /devel/wp-settings.php(717): do_action() #5 /devel/wp-config.php(105): require_once(‘…’) #6 /devel/wp-load.php(50): require_once(‘…’) #7 /devel/wp-blog-header.php(13): require_once(‘…’) #8 /devel/index.php(17): require(‘…’) #9 {main} thrown in /devel/wp-content/plugins/simple-membership/classes/class.swpm-wp-loaded-tasks.php on line 28

    I am using a No Expiry membership level

    April 27, 2024 at 12:52 am #27978
    The Assurer
    Moderator

    i have (in test mode) active two recurring subscriptions.

    What exactly do you mean by “test mode?” Any kind of sandbox modes are not supported; other than to verify communication between the payment gateway and the plugin.

    Please turn on the debug logs. We can’t help you, if there are no debug messages.

    April 27, 2024 at 6:00 am #27982
    Sonjoe
    Participant

    in β€œtest mode” i mean iam using the Stripe payments in Test Mode not in Live.

    As you wrote, in Stripe test mode is not possible to cancel subscription by user?

    I’ll enable the debug mode later and put here debug code.

    Thanks

    April 27, 2024 at 8:10 am #27984
    admin
    Keymaster

    Please check the troubleshooting section from the following page. Is that something that is happening in your case?

    https://simple-membership-plugin.com/show-active-subscriptions-and-providing-a-cancellation-option/#troubleshooting-related

    If you edit your subscription button, what value do you see in the Stripe API ID field of that button?

    April 27, 2024 at 8:37 am #27985
    Sonjoe
    Participant

    I went trough the troubleshooting without luck.

    Right now i am using this shortcode [swpm_show_subscriptions_and_cancel_link] and after resave the page where it is, is showing info about user’s subscription and the Cancel subscription button, but after click on Cancel, there is the same Fatal error mentioned above.

    My Stripe API ID for buttons are (have two buttons for recurring subs)

    Button 1: price_1P9VE1FzY8YweDVDHb11yOim
    Button 2: price_1P9V4xFzY8YweDVDJoP0LpmT

    Using SCA Subscription buttons.

    Right know i am not at computer to check the debug mode, once i will be, will send.

    Thank you

    April 29, 2024 at 12:08 pm #27987
    Sonjoe
    Participant

    Hello.

    I enabled the Debug mode. There is nothing in logs. Before the testing i did reset the logs.

    [2024/04/29 13:57:52] – SUCCESS: Log file reset
    ——————————————————————

    Nothing else. Even if i click more times on Cancel subscription, nothing appears in log file.
    Only the WordPress Fatal error shows up and the cancelation not works:

    Fatal error: Uncaught Error: Call to undefined method SWPM_Utils_Subscriptions::load() in /devel/wp-content/plugins/simple-membership/classes/class.swpm-wp-loaded-tasks.php:28 Stack trace: #0 /devel/wp-content/plugins/simple-membership/classes/class.simple-wp-membership.php(817): SwpmWpLoadedTasks->do_wp_loaded_tasks() #1 /devel/wp-includes/class-wp-hook.php(324): SimpleWpMembership->handle_wp_loaded_tasks() #2 /devel/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /devel/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /devel/wp-settings.php(717): do_action() #5 /devel/wp-config.php(105): require_once(β€˜β€¦β€™) #6 /devel/wp-load.php(50): require_once(β€˜β€¦β€™) #7 /devel/wp-blog-header.php(13): require_once(β€˜β€¦β€™) #8 /devel/index.php(17): require(β€˜β€¦β€™) #9 {main} thrown in /devel/wp-content/plugins/simple-membership/classes/class.swpm-wp-loaded-tasks.php on line 28

    I bought already Form Builder and Members directory, i need cancelation to work to run my project. Thanks πŸ™‚

    May 1, 2024 at 12:41 am #27998
    The Assurer
    Moderator

    After you cleared the debug files, and try to create a subscription; does anything appear in the debug file?

    May 2, 2024 at 1:58 am #28000
    Sonjoe
    Participant

    This is in my log file after new recurring subscription and login:

    [2024/05/01 08:44:11] – SUCCESS: Log file reset
    ——————————————————————

    [2024/05/01 08:44:21] – SUCCESS: Stripe SCA checkout session create request received. Processing request…
    [2024/05/01 08:44:22] – SUCCESS: Stripe SCA checkout session created successfully.
    [2024/05/01 08:45:17] – SUCCESS: Stripe SCA Subscription IPN (HTTP POST) received. Processing request…
    [2024/05/01 08:45:18] – SUCCESS: Stripe SCA Subscription charge successful.
    [2024/05/01 08:45:18] – SUCCESS: swpm_handle_subsc_signup_stand_alone(). Custom value: subsc_ref=2&user_ip=194.1.216.14, Unique reference: cus_Q1a4ErpfN66C1k
    [2024/05/01 08:45:18] – SUCCESS: Could not find any record using the given email address (karol@example.com). Attempting to query database using the unique reference: cus_Q1a4ErpfN66C1k
    [2024/05/01 08:45:18] – SUCCESS: Did not find a match for an existing member profile for the given reference. This must be a new payment from a new member.
    [2024/05/01 08:45:18] – SUCCESS: Creating new member account. Membership level ID: 2, Subscriber ID value: sub_1PBWuXFzY8YweDVDzTdR52wI
    [2024/05/01 08:45:18] – SUCCESS: Member signup URL: https://devel.example.com/join-us/signup/?member_id=4&code=c92b7816a4208da198e91f0e90d9412f
    [2024/05/01 08:45:19] – SUCCESS: Member signup (prompt to complete registration) email successfully sent to: karol@example.com
    [2024/05/01 08:45:19] – SUCCESS: Transaction data saved.
    [2024/05/01 08:45:19] – SUCCESS: Redirecting customer to: https://devel.example.com/payment-successful/
    [2024/05/01 08:45:19] – SUCCESS: End of Stripe SCA Subscription IPN processing.

    ——————————————————————

    [2024/05/01 08:45:25] – SUCCESS: Stripe subscription webhook received: invoice.payment_succeeded. Checking if we need to handle this webhook.
    [2024/05/01 08:45:25] – SUCCESS: End of Stripe subscription webhook processing. Webhook type: invoice.payment_succeeded
    [2024/05/01 08:45:26] – SUCCESS: Stripe subscription webhook received: customer.subscription.updated. Checking if we need to handle this webhook.
    [2024/05/01 08:45:26] – SUCCESS: Stripe customer.subscription.updated webhook status: active
    [2024/05/01 08:45:26] – SUCCESS: Updating the access start date if applicable for this subscription payment. Subscriber ID: sub_1PBWuXFzY8YweDVDzTdR52wI, Email: , Account status: active
    [2024/05/01 08:45:26] – SUCCESS: Found a record in the member table. The Member ID of the account to check is: 4 Membership Level: 2
    [2024/05/01 08:45:26] – SUCCESS: Updated the member profile with current date as the subscription start date.
    [2024/05/01 08:45:26] – SUCCESS: Value after update – Subscriber ID: sub_1PBWuXFzY8YweDVDzTdR52wI, Start Date: 2024-05-01
    [2024/05/01 08:45:26] – SUCCESS: End of Stripe subscription webhook processing. Webhook type: customer.subscription.updated
    [2024/05/01 08:45:52] – SUCCESS: Form builder addon – registration complete email sent to: karol@example.com From Email Address value used: Example.com <noreply@example.com>
    [2024/05/01 08:45:52] – SUCCESS: Form builder addon – admin notification email sent to: admin@example.com
    [2024/05/01 08:45:52] – SUCCESS: Auto login after registration feature is enabled in settings. Performing auto login for user: karol
    [2024/05/01 08:45:53] – SUCCESS: Handling auto login request. The login related debug log file will contain additional details.

    The fatal error by subscription cancelation is still there and still nothing appears about this error in log files.

    Thanks

    May 2, 2024 at 2:08 am #28006
    admin
    Keymaster

    Hi, This will require an in-depth troubleshooting since something is not connecting somewhere on this site. There might be a conflict happening on this site. Since you purchased the form builder addon, use the following form to submit a ticket:
    https://simple-membership-plugin.com/premium-addon-support/

    Submitting a ticket will enable me to discuss details of your setup and Stripe account that are best kept private.

    Please mention this post when you submit the ticket so I will have a reference.

    May 2, 2024 at 9:24 am #28011
    Sonjoe
    Participant

    Hi, it is not needed, after the last update 4.4.6. the cancelation already works. Maybe a custom page for the successful cancelation would be better looking πŸ™‚

    Thank you

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy