Fatal PHP error with 7.3

[ad_1]

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer