Critical error in plugin on admin login page
-
After the latest plugin update (3.3.24) I was unable to log in to my site admin, which was caused by the following error:
[30-Jul-2022 08:37:58 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_upe_enabled_payment_method_ids() on null in site/wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php:664 Stack trace: #0 site/wp-includes/class-wp-hook.php(309): WC_Stripe->checkout_update_email_field_priority() #1 site/wp-includes/plugin.php(191): WP_Hook->apply_filters() #2 site/wp-content/plugins/woocommerce/includes/class-wc-countries.php(1616): apply_filters() #3 site/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(228): WC_Countries->get_address_fields() #4 site/wp-content/plugins/woo-stripe-payment/includes/wc-stripe-functions.php(1235): WC_Checkout->get_checkout_fields() #5 site/wp-content/plugins/woo-stripe-payment/includes/class-wc-stripe-frontend-scripts.php(104): wc_stripe_get_checkout_fields() #6 site/wp-includes/class-wp-hook.php(307): WC_ in site/wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php on line 664
The code in question is as follows:
public function checkout_update_email_field_priority( $fields ) { $is_link_enabled = in_array( WC_Stripe_UPE_Payment_Method_Link::STRIPE_ID, $this->stripe_gateway->get_upe_enabled_payment_method_ids(), // <-- HERE true );
I had to “hack” it and test for “non-falsiness” of
$this->stripe_gateway
first to be able to log in.Hope it gets fixed soon.
Thanks
Pete
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Critical error in plugin on admin login page’ is closed to new replies.