'When I try to open admin panel it get redirected to woocommerce setup wizard

I am having very weird issue in my store. I get redirected to woocommerce setup wizard page when I try to open any page in admin panel.

I tried setting up woocommerce settings. I have gone through all the steps and at last I again get redurected to setup wizard.

when I deactivate woocommerce plugin it runs properly. But with woocommerce pplugin it redirects to woo setup wizard.

This screen pops up always as I try to open admin panel



Solution 1:[1]

I found the tie breaking solution guys. It was like stuck on the same page. I got a filter from woocommerce docs.

add_filter( 'woocommerce_prevent_automatic_wizard_redirect', 'wc_subscriber_auto_redirect', 20, 1 );
function wc_subscriber_auto_redirect( $boolean ) {
    return true;
}

This stopped the redirection from admin panel to wc setup wizard.

Solution 2:[2]

There is few options why this might happen, but probalby Your browser do cache wp-admin panel url with WOO wizard redirection.

Frist try solution: Delete browser cache.

Solution 3:[3]

This is what I use to prevent redirection

add_filter( 'woocommerce_prevent_automatic_wizard_redirect', '__return_true' );

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pravin Durugkar
Solution 2 Monika
Solution 3