Support » Plugin: WooCommerce » Just updated to Version 2.5.2 and now can't login to admin area

Viewing 15 replies - 1 through 15 (of 25 total)
  • How did you update? Was it by moving files over by FTP or using the update feature on WordPress?

    What happens when you turn off the “erident-custom-login-and-dashboard” plugin? Do you get the same exact error messages? How about try disabling the “erident-custom-login-and-dashboard” plugin and edit functions.php so that it doesn’t trigger the WP_WIDGET error. Use _Construct() instead of delete the code?

    Plugin Author Mike Jolley

    (@mikejolley)

    I’d disable erident-custom-login-and-dashboard first to see if that is preventing login. There are no fatal errors above so those ones shouldn’t affect actual login, although they could break redirects.

    To disable a plugin without admin access, FTP into your wp-content/plugins/ directory, and rename the plugin folder.

    I’d disable erident-custom-login-and-dashboard first to see if that is preventing login. There are no fatal errors above so those ones shouldn’t affect actual login, although they could break redirects.

    To disable a plugin without admin access, FTP into your wp-content/plugins/ directory, and rename the plugin folder.

    I disabled the erident custom login plugin (and flushed the cache) and now when I go to my login page the same behavior happens. I get the login screen, and enter the login and it appears to accept it, but the page keeps redirecting to my homepage and now WP admin.

    To clarify what I said yesterday about “nobody can login” – people get the login screen (now even with erident plugin deactivated), people can enter their login info and it seems to be accepted, but the site redirects now to the homepage instead of WP admin. Everything was fine until I updated the woocommerce plugin, and if I deactivate that plugin everything works fine.

    When you said it “could break the redirects” what did you mean by that? That appears to be happening, as my site redirects after login to the main home page and not WP admin.

    Thank you!

    How did you update? Was it by moving files over by FTP or using the update feature on WordPress?

    What happens when you turn off the “erident-custom-login-and-dashboard” plugin? Do you get the same exact error messages? How about try disabling the “erident-custom-login-and-dashboard” plugin and edit functions.php so that it doesn’t trigger the WP_WIDGET error. Use _Construct() instead of delete the code?

    @kimsf – I updated through WP admin as normal, not over FTP. I saw that there was a woocommerce update and it said 1 week old, so I figured it was safe to update by now and I clicked update and my WP site updated. Then after update, I saw this message on my WP admin:

    “Your theme does not declare WooCommerce support – Please read our integration guide or check out our Storefront theme which is totally free to download and designed specifically for use with WooCommerce.”/blockquote>

    And then after updating a few mins later I had refreshed the page or something and it said “my permissions don’t allow me to view that page” as if I wasn’t logged in as an admin and trying to view an admin page. Then I tried logging back in and started down this rabbit hole. I tried deactivating erident custom plugin, see my comment above, that didn’t work. Not sure about the rest of what you’re asking. Thanks!

    Plugin Author Mike Jolley

    (@mikejolley)

    Are you able to login as ADMIN?

    WooCommerce redirects non-admin users to the ‘my account’ page, or homepage if that doesn’t exist.

    Are you able to login as ADMIN?

    WooCommerce redirects non-admin users to the ‘my account’ page, or homepage if that doesn’t exist.

    Not when Woocommerce is activated, no I cannot. Only if I disable the plugin via FTP then I can get in. I just tried again as an admin and when I login it appears my credentials are accepted but I’m redirected to the home page. When I manually go to the /wp-admin/ page I get redirected to the home page too.

    WooCommerce redirects non-admin users to the ‘my account’ page, or homepage if that doesn’t exist.

    Also for this comment specifically, in the past WooCommerce would redirect to /wp-admin/profile.php and not the home page. I assume when you say ‘my account’ page you mean the Profile WP admin page?

    Plugin Author Mike Jolley

    (@mikejolley)

    No, I mean my account.

    Use this to stop that:

    add_filter( 'woocommerce_prevent_admin_access', '__return_false' );

    add_filter( 'woocommerce_prevent_admin_access', '__return_false' );

    Where should I put that? In what file? WP config?

    Plugin Author Mike Jolley

    (@mikejolley)

    functions.php of your theme.

    functions.php of your theme.

    Ok I did that and I can now login as a regular user but not as an admin.

    I have erident plugin deactivated and WooCommerce still active.

    Plugin Author Mike Jolley

    (@mikejolley)

    > Ok I did that and I can now login as a regular user but not as an admin.

    Thats the only thing we have which restricts access. I’d start looking at other code you’re running.

    > Ok I did that and I can now login as a regular user but not as an admin.

    Thats the only thing we have which restricts access. I’d start looking at other code you’re running.

    Is there a way to revert the changes to the previous version of WooCommerce? Everything was just fine until yesterday when I did the update and now my login is broken.

    Plugin Author Mike Jolley

    (@mikejolley)

    From what version? https://wordpress.org/plugins/woocommerce/developers/

    You’re the only user to report the problem, so there has to be a separate conflict somewhere on your site.

    Strange, so I left this code in and flushed the cache again and tried again after a couple hours and I can get in using Chrome just fine as an Admin and a regular user.

    add_filter( 'woocommerce_prevent_admin_access', '__return_false' );

    But when I try with IE I can get in with a regular user but NOT with an Admin. Do you think it has to do with the browser?

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Just updated to Version 2.5.2 and now can't login to admin area’ is closed to new replies.