• Hello @krzysztofskorupa

    We are facing a critical error with subscriptions! All the subscriptions were working properly before the last update and we’re noticing a critical error after the update. We suspect that the error might be the reason for not renewing the subscription automatically. I’ve attached all the details below. Could you please take a look let us know how to solve the issue?

    Best regards

    ## Versions:
    Flexible Subscription: 1.7.0
    WooCommerce: 10.4.3
    WooCommerce PayPal Payments: 3.3.1
    WooCommerce Stripe Gateway: 10.2.0

    ## Logs:
    19/12/25 – https://prnt.sc/SA0i0-Zlr1W-
    21/12/25 – https://prnt.sc/2MmWJlf4NQbU
    22/12/25 – https://prnt.sc/9uLfjVWsyrZH
    23/12/25 – https://prnt.sc/owD_cbLrQIXf
    24/12/25 – https://prnt.sc/FEDEP8ok_sn9
    04/01/26 – https://prnt.sc/eqVh5TGNpjO2

    ## Error details:

    2026-01-04T09:58:20+00:00 Critical Error processing payment request for subscription "9549": WooCommerce\PayPalCommerce\PayPalSubscriptions\PayPalSubscriptionsModule::WooCommerce\PayPalCommerce\PayPalSubscriptions\{closure}(): Argument #1 ($subscription) must be of type WC_Subscription, WPDesk\FlexibleSubscriptions\Subscription\Subscription given, called in /home/aneloleg/www/******.***/wp-includes/class-wp-hook.php on line 326  
    Additional context
    {
    "uid": "13078c8",
    "trace": "#0 /home/aneloleg/www/******.***/wp-includes/class-wp-hook.php(326): WooCommerce\PayPalCommerce\PayPalSubscriptions\PayPalSubscriptionsModule->WooCommerce\PayPalCommerce\PayPalSubscriptions\{closure}()n#1 /home/aneloleg/www/******.***/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()n#2 /home/aneloleg/www/******.***/wp-includes/plugin.php(517): WP_Hook->do_action()n#3 /home/aneloleg/www/******.***/wp-content/plugins/flexible-subscriptions/src/HookProvider/Compatibility/StatusHookMapper.php(34): do_action()n#4 /home/aneloleg/www/******.***/wp-includes/class-wp-hook.php(324): WPDesk\FlexibleSubscriptions\HookProvider\Compatibility\StatusHookMapper->map_status_hooks()n#5 /home/aneloleg/www/******.***/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()n#6 /home/aneloleg/www/******.***/wp-includes/plugin.php(517): WP_Hook->do_action()n#7 /home/aneloleg/www/******.***/wp-content/plugins/flexible-subscriptions/src/Subscription/Subscription.php(496): do_action()n#8 /home/aneloleg/www/******.***/wp-content/plugins/woocommerce/includes/class-wc-order.php(285): WPDesk\FlexibleSubscriptions\Subscription\Subscription->status_transition()n#9 /home/aneloleg/www/******.***/wp-content/plugins/flexible-subscriptions/src/Subscription/Subscription.php(480): WC_Order->save()n#10 /home/aneloleg/www/******.***/wp-content/plugins/flexible-subscriptions/src/HookProvider/Subscription/PaymentRequestProcessor.php(116): WPDesk\FlexibleSubscriptions\Subscription\Subscription->update_status()n#11 /home/aneloleg/www/******.***/wp-content/plugins/flexible-subscriptions/src/HookProvider/Subscription/PaymentRequestProcessor.php(43): WPDesk\FlexibleSubscriptions\HookProvider\Subscription\PaymentRequestProcessor->do_process()n#12 /home/aneloleg/www/******.***/wp-includes/class-wp-hook.php(324): WPDesk\FlexibleSubscriptions\HookProvider\Subscription\PaymentRequestProcessor->__invoke()n#13 /home/aneloleg/www/******.***/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()n#14 /home/aneloleg/www/******.***/wp-includes/plugin.php(565): WP_Hook->do_action()n#15 /home/aneloleg/www/******.***/wp-content/plugins/woocommerce/packages/action-scheduler/classes/actions/ActionScheduler_Action.php(86): do_action_ref_array()n#16 /home/aneloleg/www/******.***/wp-content/plugins/woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php(103): ActionScheduler_Action->execute()n#17 /home/aneloleg/www/******.***/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php(188): ActionScheduler_Abstract_QueueRunner->process_action()n#18 /home/aneloleg/www/******.***/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php(158): ActionScheduler_QueueRunner->do_batch()n#19 /home/aneloleg/www/******.***/wp-includes/class-wp-hook.php(324): ActionScheduler_QueueRunner->run()n#20 /home/aneloleg/www/******.***/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()n#21 /home/aneloleg/www/******.***/wp-includes/plugin.php(565): WP_Hook->do_action()n#22 /home/aneloleg/www/******.***/wp-cron.php(191): do_action_ref_array()n#23 {main}"
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support sebastianrybacki

    (@sebastianrybacki)

    Hello,

    Thank you for reaching out to us. It looks like PayPal’s integration expects subscriptions to be instances of the WC_Subscription class (from the official WooCommerce Subscriptions plugin). Our plugin uses its own type of subscription object, which leads to a critical error when PayPal tries to process automatic renewals.

    I’ve already passed this issue to the development team responsible for Flexible Subscriptions.
    They’re now reviewing the necessary changes to improve compatibility and avoid this error in future releases.

    I kindly ask for a bit of patience — i’ll inform you as soon as a fix is ready or if I need anything further from your side.

    Thanks again for your cooperation.

    Best regards,

    Thread Starter Md Obidullah (obiPlabon)

    (@obiplabon)

    I’ll be waiting for the update. Thank you @sebastianrybacki

    Plugin Support sebastianrybacki

    (@sebastianrybacki)

    Hello,

    Thank you for your patience.

    I just want to inform you that we’ve released a new version of the Flexible Subscriptions plugin (1.7.1), which includes a fix for the issue that you reported.

    I encourage you to update the plugin and verify if the problem has been resolved.

    Kind regards,

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.