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

  1. Suzanne Ahjira
    Posted 3 years 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


  2. Suzanne Ahjira
    Posted 3 years 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;
      if ($current_user->user_level <  4) {
        wp_redirect( get_bloginfo('url') );

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Sexy Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic