• Resolved bharti18

    (@bharti18)


    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

Viewing 1 replies (of 1 total)
  • Hi,

    Can you please walk us through the steps you did to enable the option “Redirect WooCommerce account page to Digits login page”? Also, please share with us some screenshots of the configuration you had on your end. You may use https://snipboard.io when sharing screenshots.

    On another note, based on the error log you’ve provided, it looks like the issue originates from the Digits login plugin, and it’s causing a conflict with the WooCommerce ‘get_cart’ function. I would suggest deactivating all plugins except WooCommerce and the Digits plugin and then switching to a default WordPress theme, to see if the issue persists. If it’s resolved, kindly re-enable each plugin to see which may be conflicting with it. You can find a more detailed explanation of how to do a conflict test here.

    Let us know how it goes!

Viewing 1 replies (of 1 total)
  • The topic ‘Error notice’ is closed to new replies.