Undefined property
-
With the last version (4.1.4), getting the debug.log steadily filled with these:
PHP Warning: Undefined property: WooCommerce::$checkout in \plugins\fluid-checkout\inc\checkout-steps.php on line 269
PHP Warning: Undefined property: WooCommerce::$checkout in \plugins\fluid-checkout\inc\checkout-steps.php on line 270It seems to happen everywhere in the site during page load. Something like this seems to help:
public function checkout_form_hooks() {
if ( !is_checkout() ) return; //alx359
// Unhook WooCommerce functions
if ( doing_action( 'woocommerce_checkout_init' ) || did_action( 'woocommerce_checkout_init' ) ) {
remove_action( 'woocommerce_checkout_billing', array( WC()->checkout, 'checkout_form_billing' ), 10 );
remove_action( 'woocommerce_checkout_shipping', array( WC()->checkout, 'checkout_form_shipping' ), 10 );
}
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.