WordPress.org

Ready to get started?Download WordPress

Forums

Sexy Login
[resolved] Theme causing login failure (2 posts)

  1. Suzanne Ahjira
    Member
    Posted 10 months ago #

    Hi there. I'm trying to get this working. My custom theme seems to be the issue. When attempting to login, I always get ERROR or if you try to register someone, you get ERROR. I turned off all other plugins, that wasn't it. I switched themes, THAT was it. But I have no idea where to start looking for this issue. I'm hoping maybe you'd have an idea what a theme could be doing that would prevent a login/registration. I don't see this issue with other login widgets - every other login plugin I've tried works - so it has to be something very unique that this one does.

    Any ideas about might be suspect would help. Thanks

    http://wordpress.org/plugins/sexy-login/

  2. Suzanne Ahjira
    Member
    Posted 10 months ago #

    Nevermind I figured it out but for anyone else getting the generic ERROR message when attempting to login, here one reason why that might happen...

    I have a function running that prevents users from viewing the back end:

    add_action('admin_init', 'restrict_access_admin_panel', 1);
    function restrict_access_admin_panel(){
      global $current_user;
      get_currentuserinfo();
      if ($current_user->user_level <  4) {
        wp_redirect( get_bloginfo('url') );
        exit;
      }
    }

    This was causing the issue, probably because of the redirect? I'm not sure.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags