• Resolved Brendyn Montgomery

    (@avocadesign)


    Hi Team

    With a woocommerce subscriptions renewal we were having a fatal PHP error with Stripe v7.3. Rolling back to 7.2 allowed us to process the payment.

    We tested with all other plugins disabled and it was still an issue. Here’s the error log:

    05-01-2023 @ 13:00:40 - scheduled action 27213 (subscription payment) failed to finish processing due to the following error: Uncaught Error: Call to a member function get_meta() on bool in /var/www/clients.avoca.design/htdocs/wp-content/plugins/woocommerce-gateway-stripe/includes/compat/trait-wc-stripe-subscriptions.php:572
    Stack trace:
    #0 /var/www/clients.avoca.design/htdocs/wp-includes/class-wp-hook.php(308): WC_Stripe_Payment_Gateway->add_subscription_information_to_intent()
    #1 /var/www/clients.avoca.design/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #2 /var/www/clients.avoca.design/htdocs/wp-content/plugins/woocommerce-gateway-stripe/includes/abstracts/abstract-wc-stripe-payment-gateway.php(1704): apply_filters()
    #3 /var/www/clients.avoca.design/htdocs/wp-content/plugins/woocommerce-gateway-stripe/includes/compat/trait-wc-stripe-subscriptions.php(285): WC_Stripe_Payment_Gateway->create_and_confirm_intent_for_off_session()
    #4 /var/www/clients.avoca.design/htdocs/wp-content/plugins/woocommerce-gateway-stripe/includes/compat/trait-wc-stripe-subscriptions.php(189): WC_Stripe_Payment_Gateway->process_subscription_payment()
    #5 /var/www/clients.avoca.design/htdocs/wp-includes/class-wp-hook.php(308): WC_Stripe_Payment_Gateway->scheduled_subscription_payment()
    #6 /var/www/clients.avoca.design/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #7 /var/www/clients.avoca.design/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
    #8 /var/www/clients.avoca.design/htdocs/wp-content/plugins/woocommerce-subscriptions/includes/gateways/class-wc-subscriptions-payment-gateways.php(97): do_action()
    #9 /var/www/clients.avoca.design/htdocs/wp-content/plugins/woocommerce-subscriptions/includes/gateways/class-wc-subscriptions-payment-gateways.php(81): WC_Subscriptions_Payment_Gateways::trigger_gateway_renewal_payment_hook()
    #10 /var/www/clients.avoca.design/htdocs/wp-includes/class-wp-hook.php(308): WC_Subscriptions_Payment_Gateways::gateway_scheduled_subscription_payment()
    #11 /var/www/clients.avoca.design/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #12 /var/www/clients.avoca.design/htdocs/wp-includes/plugin.php(565): WP_Hook->do_action()
    #13 /var/www/clients.avoca.design/htdocs/wp-content/plugins/imagify/inc/Dependencies/ActionScheduler/classes/actions/ActionScheduler_Action.php(43): do_action_ref_array()
    #14 /var/www/clients.avoca.design/htdocs/wp-content/plugins/imagify/inc/Dependencies/ActionScheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php(65): ActionScheduler_Action->execute()
    #15 /var/www/clients.avoca.design/htdocs/wp-content/plugins/imagify/inc/Dependencies/ActionScheduler/classes/ActionScheduler_QueueRunner.php(166): ActionScheduler_Abstract_QueueRunner->process_action()
    #16 /var/www/clients.avoca.design/htdocs/wp-content/plugins/imagify/inc/Dependencies/ActionScheduler/classes/ActionScheduler_QueueRunner.php(136): ActionScheduler_QueueRunner->do_batch()
    #17 /var/www/clients.avoca.design/htdocs/wp-includes/class-wp-hook.php(308): ActionScheduler_QueueRunner->run()
    #18 /var/www/clients.avoca.design/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #19 /var/www/clients.avoca.design/htdocs/wp-includes/plugin.php(565): WP_Hook->do_action()
    #20 /var/www/clients.avoca.design/htdocs/wp-cron.php(188): do_action_ref_array()
    #21 {main}
      thrown
    05-01-2023 @ 13:00:40 - action args: subscription_id: 9075

    We’d love to get to the bottom of this so we can bring it up to the latest version.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    It looks like the site is using the WooCommerce Subscriptions premium extension.

    For better assistance, please reach out to WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.

    Important Note: Please include a link to this forum thread.

    We will be able to help you further there.

    Thread Starter Brendyn Montgomery

    (@avocadesign)

    Ok will do – since it’s a core plugin I thought I’d post it here incase others had similar issues.

    Hi @avocadesign

    Thanks for submitting an open support request.

    Since you are using a premium extension purchased on our marketplace, it would be best to reach out to us via email so that our Happiness Engineers could take a closer look of your issue.

    Meanwhile, I will be marking this thread as resolved since your concern would be best handled by our Happiness Engineers there.

    Thanks!

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

The topic ‘Fatal PHP error with 7.3’ is closed to new replies.