Title: PHP Notice/Error
Last modified: January 31, 2020

---

# PHP Notice/Error

 *  Resolved [Ward](https://wordpress.org/support/users/yward/)
 * (@yward)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-notice-error-7/)
 * The plugin spams my error_log with the following error:
 *     ```
       [31-Jan-2020 21:25:42 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, seed_confirm_remove_bank_details, WC_Payment_Gateways->get_available_payment_gateways, Woo_Gateway_Wallet_payment->is_available, is_enable_wallet_partial_payment, is_wallet_rechargeable_cart, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.
       [31-Jan-2020 21:25:42 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, seed_confirm_remove_bank_details, WC_Payment_Gateways->get_available_payment_gateways, Woo_Gateway_Wallet_payment->is_available, is_enable_wallet_partial_payment, is_wallet_rechargeable_cart, 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.
       [31-Jan-2020 21:25:42 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, seed_confirm_remove_bank_details, WC_Payment_Gateways->get_available_payment_gateways, Woo_Gateway_Wallet_payment->is_available, is_enable_wallet_partial_payment, is_wallet_rechargeable_cart, 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, ppom_calculate_totals_from_session, WC_Cart->calculate_totals, WC_Cart->is_empty, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.
       [31-Jan-2020 21:25:42 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, seed_confirm_remove_bank_details, WC_Payment_Gateways->get_available_payment_gateways, Woo_Gateway_Wallet_payment->is_available, is_enable_wallet_partial_payment, is_wallet_rechargeable_cart, 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, ppom_calculate_totals_from_session, WC_Cart->calculate_totals, 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.
       [31-Jan-2020 21:25:42 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, seed_confirm_remove_bank_details, WC_Payment_Gateways->get_available_payment_gateways, apply_filters('woocommerce_available_payment_gateways'), WP_Hook->apply_filters, Woo_Wallet_Frontend->woocommerce_available_payment_gateways, is_wallet_rechargeable_cart, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Subrata Mal](https://wordpress.org/support/users/subratamal/)
 * (@subratamal)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-notice-error-7/#post-12401533)
 * Hi [@yward](https://wordpress.org/support/users/yward/)
 * We have checked this and can confirm that the error log is not generated from
   our core plugin. This may be because you have a customisation with our plugin
   function. Please check and let us know.
 * Thanks
 *  Thread Starter [Ward](https://wordpress.org/support/users/yward/)
 * (@yward)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-notice-error-7/#post-12404100)
 * Thank you so much for your response. I’ll check my customizations as well as 
   possible conflicts with other plugins and confirm here with my findings.
 *  Thread Starter [Ward](https://wordpress.org/support/users/yward/)
 * (@yward)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-notice-error-7/#post-12404516)
 * Turns out it was a conflict with an unmaintained plugin I used, found here:
    
   [https://github.com/SeedThemes/seed-confirm](https://github.com/SeedThemes/seed-confirm)
 * I fixed the issue for my website by editing said plugin and commenting line 134
   in plugin’s main file as I don’t need that function in my website anyway.
    I 
   linked it above in case you wanted to see what was the reason for the conflict.
 * I’m going to mark this as resolved, thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP Notice/Error’ is closed to new replies.

 * ![](https://ps.w.org/woo-wallet/assets/icon-256x256.png?rev=3360666)
 * [Wallet for WooCommerce](https://wordpress.org/plugins/woo-wallet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-wallet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-wallet/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-wallet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-wallet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-wallet/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ward](https://wordpress.org/support/users/yward/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/php-notice-error-7/#post-12404516)
 * Status: resolved