Critical Error to Site from Last Plugin Update
-
After the plugin updated to 2.9.0 my site immediately crashes to a ‘Critical Error’ and I have to go to recovery mode and disable the Braintree plugin to get the site back up.
WordPress version 6.1.1 Active theme: Nethers Web Design (version 1.6.1.2) Current plugin: Braintree for WooCommerce Payment Gateway (version 2.9.0) PHP version 8.0.17 Error Details ============= An error of type E_ERROR was caused in line 1208 of the file /home/admin/web/nethe.rs/public_html/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/class-wc-gateway-braintree.php. Error message: Uncaught Error: Call to a member function get_base_country() on null in /home/admin/web/nethe.rs/public_html/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/class-wc-gateway-braintree.php:1208 Stack trace: #0 /home/admin/web/nethe.rs/public_html/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/class-wc-gateway-braintree.php(498): WC_Gateway_Braintree->can_connect() #1 /home/admin/web/nethe.rs/public_html/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php(1337): WC_Gateway_Braintree->add_shared_settings_form_fields(Array) #2 /home/admin/web/nethe.rs/public_html/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php(298): SkyVerge\WooCommerce\PluginFramework\v5_10_12\SV_WC_Payment_Gateway->init_form_fields() #3 /home/admin/web/nethe.rs/public_html/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/class-wc-gateway-braintree.php(91): SkyVerge\WooCommerce\PluginFramework\v5_10_12\SV_WC_Payment_Gateway->__construct('braintree_credi...', Object(WC_Braintree), Array) #4 /home/admin/web/nethe.rs/public_html/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/class-wc-gateway-braintree-credit-card.php(77): WC_Gateway_Braintree->__construct('braintree_credi...', Object(WC_Braintree), Array) #5 /home/admin/web/nethe.rs/public_html/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php(1365): WC_Gateway_Braintree_Credit_Card->__construct() #6 /home/admin/web/nethe.rs/public_html/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php(1325): SkyVerge\WooCommerce\PluginFramework\v5_10_12\SV_WC_Payment_Gateway_Plugin->get_gateway('braintree_credi...') #7 /home/admin/web/nethe.rs/public_html/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php(237): SkyVerge\WooCommerce\PluginFramework\v5_10_12\SV_WC_Payment_Gateway_Plugin->get_gateways() #8 /home/admin/web/nethe.rs/public_html/wp-includes/class-wp-hook.php(308): SkyVerge\WooCommerce\PluginFramework\v5_10_12\SV_WC_Payment_Gateway_Plugin->load_gateways(Array) #9 /home/admin/web/nethe.rs/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #10 /home/admin/web/nethe.rs/public_html/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(88): apply_filters('woocommerce_pay...', Array) #11 /home/admin/web/nethe.rs/public_html/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(70): WC_Payment_Gateways->init() #12 /home/admin/web/nethe.rs/public_html/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(43): WC_Payment_Gateways->__construct() #13 /home/admin/web/nethe.rs/public_html/wp-content/plugins/sprout-invoices-pro/bundles/sprout-invoices-addon-woocommerce/inc/Woo_Invoice_Silent_Processor.php(25): WC_Payment_Gateways::instance() #14 /home/admin/web/nethe.rs/public_html/wp-content/plugins/sprout-invoices-pro/bundles/sprout-invoices-addon-woocommerce/woocommerce.php(51): Woo_Silent_Payments_Integration::init() #15 /home/admin/web/nethe.rs/public_html/wp-includes/class-wp-hook.php(308): sa_load_woocommerce_tools('') #16 /home/admin/web/nethe.rs/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #17 /home/admin/web/nethe.rs/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #18 /home/admin/web/nethe.rs/public_html/wp-content/plugins/sprout-invoices-pro/load.php(348): do_action('sprout_invoices...') #19 /home/admin/web/nethe.rs/public_html/wp-includes/class-wp-hook.php(308): sprout_invoices_load('') #20 /home/admin/web/nethe.rs/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #21 /home/admin/web/nethe.rs/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #22 /home/admin/web/nethe.rs/public_html/wp-settings.php(480): do_action('plugins_loaded') #23 /home/admin/web/nethe.rs/public_html/wp-config.php(97): require_once('/home/admin/web...') #24 /home/admin/web/nethe.rs/public_html/wp-load.php(50): require_once('/home/admin/web...') #25 /home/admin/web/nethe.rs/public_html/wp-admin/admin.php(34): require_once('/home/admin/web...') #26 /home/admin/web/nethe.rs/public_html/wp-admin/plugins.php(10): require_once('/home/admin/web...') #27 {main} thrown
The page I need help with: [log in to see the link]
- The topic ‘Critical Error to Site from Last Plugin Update’ is closed to new replies.