[14-Nov-2025 17:35:24 UTC] get_cart was called incorrectly. Get cart should not be called before the wp_loaded action. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, AutomatticWooCommerceBlocksBlockTypesController->register_blocks, AutomatticWooCommerceBlocksBlockTypesAbstractBlock->__construct, AutomatticWooCommerceBlocksBlockTypesCheckout->initialize, AutomatticWooCommerceBlocksBlockTypesAbstractBlock->initialize, AutomatticWooCommerceBlocksIntegrationsIntegrationRegistry->initialize, do_action(‘woocommerce_blocks_checkout_block_registration’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AvaTax_Loader->{closure}, WC_AvaTax_Frontend->cart_contains_only_virtual_products_with_zero_amount, WC_Cart->is_empty, WC_Cart->get_cart, WC_Cart_Session->get_cart_from_session, WC_Cart_Session->get_cart_for_session, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.
Open
Last updated: November 14, 2025
Log in to comment on this feature request.
You must delay any code that calls $cart = WC()->cart or $cart->get_cart() until after wp_loaded. https://pipsnyt.com
This notice has been filling up our error logs as well.