• Resolved ImageChristian Strasser

    (@cswebdesigns)


    Hello,

    I get the following fatal error when I click on the subscription ID in WooCommerce > Subscriptions:

    Fatal error: Uncaught TypeError: WC_Payments_Subscription_Service::is_wcpay_subscription(): Argument #1 ($subscription) must be of type WC_Subscription, WPDesk\FlexibleSubscriptions\Subscription\Subscription given, called in /homepages/12/d4298562578/htdocs/wordpress/wp-content/plugins/woocommerce-payments/includes/subscriptions/class-wc-payments-subscription-service.php on line 703 and defined in /homepages/12/d4298562578/htdocs/wordpress/wp-content/plugins/woocommerce-payments/includes/subscriptions/class-wc-payments-subscription-service.php:287 Stack trace: #0 /homepages/12/d4298562578/htdocs/wordpress/wp-content/plugins/woocommerce-payments/includes/subscriptions/class-wc-payments-subscription-service.php(703): WC_Payments_Subscription_Service::is_wcpay_subscription() #1 /homepages/12/d4298562578/htdocs/wordpress/wp-includes/class-wp-hook.php(326): WC_Payments_Subscription_Service->prevent_wcpay_manual_renewal() #2 /homepages/12/d4298562578/htdocs/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 /homepages/12/d4298562578/htdocs/wordpress/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php(228): apply_filters() #4 /homepages/12/d4298562578/htdocs/wordpress/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php(36): WC_Meta_Box_Order_Actions::get_available_order_actions_for_order() #5 /homepages/12/d4298562578/htdocs/wordpress/wp-admin/includes/template.php(1456): WC_Meta_Box_Order_Actions::output() #6 /homepages/12/d4298562578/htdocs/wordpress/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php(502): do_meta_boxes() #7 /homepages/12/d4298562578/htdocs/wordpress/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php(410): Automattic\WooCommerce\Internal\Admin\Orders\Edit->render_meta_boxes() #8 /homepages/12/d4298562578/htdocs/wordpress/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php(294): Automattic\WooCommerce\Internal\Admin\Orders\Edit->display() #9 /homepages/12/d4298562578/htdocs/wordpress/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\Admin\Orders\PageController->output() #10 /homepages/12/d4298562578/htdocs/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #11 /homepages/12/d4298562578/htdocs/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() #12 /homepages/12/d4298562578/htdocs/wordpress/wp-admin/admin.php(260): do_action() #13 {main} thrown in /homepages/12/d4298562578/htdocs/wordpress/wp-content/plugins/woocommerce-payments/includes/subscriptions/class-wc-payments-subscription-service.php on line 287

    Let me know what I can provide you that you can have a look into this.

    Kind regards,
    Christian

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Imagekrzysztofskorupa

    (@krzysztofskorupa)

    Hi,

    thanks for getting in touch.

    FSB will not work with WC Payments.

    We are working on resolving the issue so that it does not cause a critical error after all.

    I will let you contact me when the fix comes out.

    Regards,

    Thread Starter ImageChristian Strasser

    (@cswebdesigns)

    Hi @krzysztofskorupa,

    I am a bit confused. With what payment gateway does flexible subscriptions work if not the original payment gateway of WooCommerce?

    Plugin Support Imagekrzysztofskorupa

    (@krzysztofskorupa)

    Hi,

    Basically, with anything else. WooPayments is not “the default” payment gateway. It treats subscriptions differently, as there are built-in subscription mode, which partially depends on WooCommerce Subscriptions code. Both plugins (WooPayments and WCS) share some common code, while we try to mimick the way WooCommerce Subscription works. It leads to conflict because WooPayments is fooled that the actual WooCommerce Subscriptions is active and tries to play “against it”.

    This co-dependency is quite complicated. Unfortunately, the best we can do is to avoid the fatal error with some “friendly” message. Yet, the limitation itself is impossible to overcome.

    Best regards,

    Plugin Support Imagekrzysztofskorupa

    (@krzysztofskorupa)

    Hi,
    is pleased to inform you that there is a new version of the Flexible Subscriptions plugin [1.5.3], which should fix the error problem you encountered.

    I encourage you to update and test it.
    I would appreciate hearing from you if you were able to resolve the problem.
    Regards,

    Plugin Support Imagekrzysztofskorupa

    (@krzysztofskorupa)

    Hi,
    I have not received a response for a long time, so let me close this thread.
    If there are any more questions in the future, please let me know.
    Regards,

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

The topic ‘Fatal error in Subscription backend’ is closed to new replies.