Title: Errors in error.log
Last modified: March 16, 2023

---

# Errors in error.log

 *  [bugsjr](https://wordpress.org/support/users/bugsjr/)
 * (@bugsjr)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/errors-in-error-log-12/)
 * Hi there!
 * Thanks for the plugin, it works but it generates the following error in the error_log
   file:
 * [16-Mar-2023 08:59:44 UTC] get_cart was called incorrectly. The Get cart function
   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,
   WooCommerce_Multi_Inventory_Taxonomy->init, WooCommerce_Multi_Inventory_Taxonomy-
   >add_custom_meta_fields, WC_Payment_Gateways->get_available_payment_gateways,
   apply_filters(‘woocommerce_available_payment_gateways’), WP_Hook->apply_filters,
   Woo_Conditional_Payments_Frontend->filter_payment_methods, Woo_Conditional_Payments_Frontend-
   >filter_payment_methods validated, Woo_Conditional_Payments_Filters::filter_products,
   Woo_Conditional_Payments_Filters::_get_order_products, WC_Cart->get_cart, wc_doing_it_wrong.
   This message was added in version 2.3.
 * Could you please help me fix this?
 * Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferrors-in-error-log-12%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Errors in error.log’ is closed to new replies.

 * ![](https://ps.w.org/conditional-payments-for-woocommerce/assets/icon.svg?rev
   =3508857)
 * [Conditional Payments for WooCommerce](https://wordpress.org/plugins/conditional-payments-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/conditional-payments-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/conditional-payments-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/conditional-payments-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/conditional-payments-for-woocommerce/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [bugsjr](https://wordpress.org/support/users/bugsjr/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/errors-in-error-log-12/)
 * Status: not resolved