Closed JoshThomsonx closed 1 year ago
Also reported in 6239561-zen - lost the merchant during fact-finding, so posting this for now and will update when they reply with additional info.
Their Subscription renewals are failing, apparently since updating Stripe.
04-27-2023 @ 07:06:53 - scheduled action 982377 (subscription payment) failed to finish processing after 300 seconds
With this error in the fatal-error log:
2023-04-27T07:08:39+00:00 CRITICAL Uncaught Error: Call to a member function get_meta() on bool in /home/customer/www/the_site.co.uk/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/compat/trait-wc-stripe-subscriptions.php:572
Stack trace:
#0 /home/customer/www/the_site.co.uk/public_html/wp-includes/class-wp-hook.php(308): WC_Stripe_Payment_Gateway->add_subscription_information_to_intent(Array, Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(stdClass))
#1 /home/customer/www/the_site.co.uk/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#2 /home/customer/www/the_site.co.uk/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/abstracts/abstract-wc-stripe-payment-gateway.php(1704): apply_filters('wc_stripe_gener...', Array, Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(stdClass))
#3 /home/customer/www/the_site.co.uk/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/compat/trait-wc-stripe-subscriptions
in /home/customer/wwwthe_site.co.uk/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/compat/trait-wc-stripe-subscriptions.php on line 572
Site features a child theme, code snippets plugin, caching, and importer though, so there's potential for conflict.
SSR:
I also saw this, I was wondering if it was related to the other issue to subscriptions without a parent order (#2601).
We are in a tough spot. Moving to 7.3.0 broke our subscription renewals, and since we reverted to 7.2.0 we are getting some customers who cannot place an order due to a "Source not found" with a pm_ value, like it is trying to use a payment method as source instead of card. Support has been less than zero help.
6241839-zen
6250236-zen
6251650-zen
One of our customers is impacted by this issue (ticket 6251650). Wish WC or WP would have sent an email to WP admin/store manager to alert them of this issue.
Hope there is a fix for this issue soon.
No hurry to fix it apparently
Another report in 6252411-zen
Steps to replicate:
2023-05-02T06:34:28+00:00 CRITICAL Uncaught Error: Call to a member function get_meta() on bool in /srv/htdocs/wp-content/plugins/woocommerce-gateway-stripe/includes/compat/trait-wc-stripe-subscriptions.php:572
Stack trace:
#0 /wordpress/core/6.2/wp-includes/class-wp-hook.php(308): WC_Stripe_Payment_Gateway->add_subscription_information_to_intent(Array, Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(stdClass))
#1 /wordpress/core/6.2/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#2 /srv/htdocs/wp-content/plugins/woocommerce-gateway-stripe/includes/abstracts/abstract-wc-stripe-payment-gateway.php(1704): apply_filters('wc_stripe_gener...', Array, Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(stdClass))
#3 /srv/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(Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(stdClass), '20.00')
#4 /srv/htdocs/wp-content/plugins/woocommerce-gateway-stripe/includes/compat/trait-wc-stripe-subscriptions.php(189): WC_Stripe_Payment_Gateway->process_subscription_payment('20.00', Object(Automattic\WooCommerce\Admin\Overrides\Order), true, false)
#5 /wordpress/core/6.2/wp-includes/class-wp-hook.php(308): WC_Stripe_Payment_Gateway->scheduled_subscription_payment('20.00', Object(Automattic\WooCommerce\Admin\Overrides\Order))
#6 /wordpress/core/6.2/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#7 /wordpress/core/6.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /srv/htdocs/wp-content/plugins/woocommerce-subscriptions/includes/gateways/class-wc-subscriptions-payment-gateways.php(97): do_action('woocommerce_sch...', '20.00', Object(Automattic\WooCommerce\Admin\Overrides\Order))
#9 /srv/htdocs/wp-content/plugins/woocommerce-subscriptions/includes/gateways/class-wc-subscriptions-payment-gateways.php(81): WC_Subscriptions_Payment_Gateways::trigger_gateway_renewal_payment_hook(Object(Automattic\WooCommerce\Admin\Overrides\Order))
#10 /wordpress/core/6.2/wp-includes/class-wp-hook.php(308): WC_Subscriptions_Payment_Gateways::gateway_scheduled_subscription_payment(7953)
#11 /wordpress/core/6.2/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#12 /wordpress/core/6.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#13 /srv/htdocs/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/admin/class-wcs-admin-meta-boxes.php(244): do_action('woocommerce_sch...', 7953)
#14 /wordpress/core/6.2/wp-includes/class-wp-hook.php(308): WCS_Admin_Meta_Boxes::process_renewal_action_request(Object(WC_Subscription))
#15 /wordpress/core/6.2/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#16 /wordpress/core/6.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#17 /srv/htdocs/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php(173): do_action('woocommerce_ord...', Object(WC_Subscription))
#18 /wordpress/core/6.2/wp-includes/class-wp-hook.php(308): WC_Meta_Box_Order_Actions::save(7953, Object(WP_Post))
#19 /wordpress/core/6.2/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#20 /wordpress/core/6.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#21 /srv/htdocs/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(258): do_action('woocommerce_pro...', 7953, Object(WP_Post))
#22 /wordpress/core/6.2/wp-includes/class-wp-hook.php(310): WC_Admin_Meta_Boxes->save_meta_boxes(7953, Object(WP_Post))
#23 /wordpress/core/6.2/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#24 /wordpress/core/6.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#25 /wordpress/core/6.2/wp-includes/post.php(4715): do_action('save_post', 7953, Object(WP_Post), true)
#26 /wordpress/core/6.2/wp-includes/post.php(4817): wp_insert_post(Array, false, true)
#27 /wordpress/core/6.2/wp-admin/includes/post.php(439): wp_update_post(Array)
#28 /wordpress/core/6.2/wp-admin/post.php(227): edit_post()
#29 {main}
thrown in /srv/htdocs/wp-content/plugins/woocommerce-gateway-stripe/includes/compat/trait-wc-stripe-subscriptions.php on line 572
Another reported in 6252544-zen
Also having this issue.... critical for my client's website.
This is the same with issue #2595 which has been fixed and should be released soon.
@imodouglas do we have an ETA for releasing this? It's obviously a major issue considering how many reports there have been (and knowing even more people wouldn't have noticed)
AFAIK, there is no ETA for the next release but I anticipate it should be out in a few days.
Such a sad response considering this is a critical and vital function of an e-commerce store. We tried to roll back to 7.2.0 and that caused other issues, there is no escape here except to fix the problem and there doesn’t seem to be the proper sense of urgency to do so.
6255498-zen
6259883-zen
Hi,
I have WooCommerce Stripe Gateway V7.3.0 and WooCommerce V7.6.1 and WooCommerce subscriptions V4.9.1.
Noticed that from last few days stripe renewals are not happening. So checked in WooCommerce -> Status -> Scheduled Actions. The subscription payment is in pending status and it is not firing on the scheduled date. E,g – For Apr month renewals have not been fired.
woocommerce_scheduled_subscription_payment is in Pending status
I am not getting fatal error related to get_meta() though. And the issue is with all stripe renewals (not the issue of parent order does not exist) from last 3 months.
When this issue will be fixed and is there a quick solution to this? I searched for woocommerce_scheduled_subscription_payment hook in Scheduled Actions tab and there are more than 100 records. Do I have to run it one by one or is there any automated way?
@pallavic27 version 7.4.0 was released yesterday and it's meant to be fixing this issue so try updating and see how it goes.
@glagonikas
I saw new version is released. But it is for 'Issue processing renewals for subscriptions without parent orders.'.
I have different issue so not sure whether it will help. Also someone from plugin support team mentioned today that this is known issue and redirected here. New plugin was already released that time. So not sure.
@pallavic27 sounds like your issue is not related to this thread tho? Not sure why they redirected you here, but to avoid confusion, maybe you should search for similar issues here https://github.com/woocommerce/woocommerce-gateway-stripe/issues and possibly raise a new one if none exist?
I see this is actually a duplicate issue of https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2595, as mentioned before.
I'm closing this one and you can refer to the main issue for updates.
Describe the bug Getting the following error: scheduled action 334240 (subscription payment) failed to finish processing due to the following error: Uncaught Error: Call to a member function get_meta() on bool in /wp-content/plugins/woocommerce-gateway-stripe/includes/compat/trait-wc-stripe-subscriptions.php:572
To Reproduce Steps to reproduce the behavior: N/A
Expected behavior The renewal scheduled action to successfully go through.
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context N/A