• Resolved Ward

    (@yward)


    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

    (@subratamal)

    Hi @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

    (@yward)

    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

    (@yward)

    Turns out it was a conflict with an unmaintained plugin I used, found here:
    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.