Error notice
-
Hello,
Im using woocommerce, Its working good, only my login and signup pages getting error, when i tried to enable this option “Redirect WooCommerce account page to Digits login page”. Please check the error notice:
Notice: Function 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, digits_login, do_action(‘login_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_resource_hints, apply_filters(‘wp_resource_hints’), WP_Hook->apply_filters, Automattic\WooCommerce\Blocks\AssetsController->add_resource_hints, WC_Cart->get_cart_contents_count, 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 Please see?Debugging in WordPress?for more information. (This message was added in version 2.3.) in?/home/u748091560/domains/domainname/public_html/wp-includes/functions.php?on line?5905
I’m also using minicart plugin, i tried downgraded, deactivated, but nothing is working. How to fix this error?
Thank you
- The topic ‘Error notice’ is closed to new replies.