Error during update to WP 6.5.5 / WC 9.0.2

[ad_1]

Error occurred while performing an update to the plugin (version 3.1.6):

PHP Fatal error: Uncaught Error: Call to a member function is_available() on null in .../wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/class-wc-gateway-braintree-blocks-support.php:51

Fix is relatively simple. Just add the following line (#51) in WC_Gateway_Braintree_Blocks_Support::is_active:

if ( !isset( $payment_gateways[ $this->name ] ) || is_null( $payment_gateways[ $this->name ] ) ) return false;

 

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