Support » Plugin: Save and Share Cart for WooCommerce » Log error when Get cart it´s used

  • diegosn79

    (@diegosn79)


    Hi!
    Thanks for the excelente job you´ve done with this plugin.
    We´re using it a lot.
    Since last version 2.0.5 we see this error in woo logs.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\Cart\CartProcessor->syncCartItemHashes, WC_Cart->is_empty, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\Cart\CartProcessor->syncCartItemHashes, WC_Cart->is_empty, WC_Cart->get_cart, WC_Cart_Session->get_cart_from_session, do_action(‘woocommerce_cart_loaded_from_session’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Cart_Session->set_session, WC_Cart_Session->get_cart_for_session, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->processStarted, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->fetchWcCartData, WC_Cart->calculate_shipping, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->processStarted, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->fetchWcCartData, WC_Cart->calculate_shipping, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->processStarted, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->fetchWcCartData, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->processStarted, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->fetchWcCartData, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, WC_Cart->is_empty, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_item_totals, WC_Cart_Totals->get_items_from_cart, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_item_totals, WC_Cart_Totals->calculate_discounts, WC_Discounts->__construct, WC_Discounts->set_items_from_cart, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_shipping_totals, WC_Cart_Totals->get_shipping_from_cart, WC_Cart->calculate_shipping, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_shipping_totals, WC_Cart_Totals->get_shipping_from_cart, WC_Cart->calculate_shipping, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_item_totals, WC_Cart_Totals->get_items_from_cart, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_item_totals, WC_Cart_Totals->calculate_discounts, WC_Discounts->__construct, WC_Discounts->set_items_from_cart, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_shipping_totals, WC_Cart_Totals->get_shipping_from_cart, WC_Cart->calculate_shipping, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_shipping_totals, WC_Cart_Totals->get_shipping_from_cart, WC_Cart->calculate_shipping, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_item_totals, WC_Cart_Totals->get_items_from_cart, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_item_totals, WC_Cart_Totals->calculate_discounts, WC_Discounts->__construct, WC_Discounts->set_items_from_cart, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_shipping_totals, WC_Cart_Totals->get_shipping_from_cart, WC_Cart->calculate_shipping, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_shipping_totals, WC_Cart_Totals->get_shipping_from_cart, WC_Cart->calculate_shipping, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_item_totals, WC_Cart_Totals->get_items_from_cart, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_item_totals, WC_Cart_Totals->calculate_discounts, WC_Discounts->__construct, WC_Discounts->set_items_from_cart, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_shipping_totals, WC_Cart_Totals->get_shipping_from_cart, WC_Cart->calculate_shipping, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_shipping_totals, WC_Cart_Totals->get_shipping_from_cart, WC_Cart->calculate_shipping, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_item_totals, WC_Cart_Totals->get_items_from_cart, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_item_totals, WC_Cart_Totals->calculate_discounts, WC_Discounts->__construct, WC_Discounts->set_items_from_cart, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_shipping_totals, WC_Cart_Totals->get_shipping_from_cart, WC_Cart->calculate_shipping, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\External\WC\WcNoFilterWorker->calculateTotals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_shipping_totals, WC_Cart_Totals->get_shipping_from_cart, WC_Cart->calculate_shipping, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, WC_Legacy_Cart->set_session, WC_Cart_Session->set_session, WC_Cart_Session->get_cart_for_session, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->processFinished, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->fetchWcCartData, WC_Cart->calculate_shipping, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->processFinished, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->fetchWcCartData, WC_Cart->calculate_shipping, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->processFinished, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->fetchWcCartData, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    [23-Jul-2021 20:10:56 UTC] get_cart was called incorrectly. Get cart should not be called before action wp_loaded 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, ADP\BaseVersion\Includes\Loader->initPlugin, ADP\BaseVersion\Includes\Loader->load, ADP\BaseVersion\Includes\External\LoadStrategies\RestApi->start, ADP\BaseVersion\Includes\External\Engine->installProductProcessorWithEmptyCart, ADP\BaseVersion\Includes\External\Engine->process, ADP\BaseVersion\Includes\Cart\CartProcessor->process, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->processFinished, ADP\BaseVersion\Includes\Reporter\CartCalculatorListener->fetchWcCartData, WC_Cart->get_shipping_packages, WC_Cart->get_items_needing_shipping, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    Our server details:

    WooCommerce: 5.5.2
    Paquete de la REST API de WooCommerce: 5.5.2
    Paquete WooCommerce Blocks: 5.3.3
    Paquete del programador de acciones: 3.2.1
    Paquete de WooCommerce Admin: 2.4.4
    Directorio de registros con permiso de escritura: Versión de WordPress: 5.8
    Version BD WordPress: 5.5.2

    Feel free to contact me if you need more testing results.
    Best regards.

  • The topic ‘Log error when Get cart it´s used’ is closed to new replies.