Support » Plugin: Force Login » Login Loop

  • Resolved bjf123

    (@bjf123)


    This plugin will be exactly what we need, but I’m stuck in a loop. With the plugin activated, if I go to volunteerexecutiveboard.com and enter my admin username and password, it takes me right back to the login page. If I manually then enter the domain, it takes me to the home page. The documentation says to edit the functions.php file. I don’t see a file with just that name. There are a couple of files with something in front of functions, but nothing referencing force login. There’s not a functions.php file in the forcelogins plugin folder. Help!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Kevin Vess

    (@kevinvess)

    Hi, thanks for using Force Login!

    [I] enter my admin username and password, it takes me right back to the login page.

    Force Login only redirects visitors to the login screen, requiring them to log in. Anything that happens during or after the login process is not altered by Force Login.

    This sounds like it’s caused by a conflict with another plugin or your theme. I recommend you try the following steps to rule out a conflict with your other plugins or theme:

    To test for a theme conflict:

    1. Activate default Twenty-Something theme
    2. Check to see if the issue still occurs
    3. If the issue does not occur after having activated the default “Twenty” theme, your theme is causing a conflict with Force Login.

    To test for a plugin conflict:

    1. Deactivate ALL plugins
    2. Activate Force Login
    3. Check to see if the issue occurs

    If the issue does not occur, one (or more) of your plugins is causing a conflict with Force Login.

    To determine which plugin(s) is causing the conflict, follow these steps:

    1. Activate each plugin one by one
    2. Check to see if the issue occurs after each plugin is activated

    The documentation says to edit the functions.php file.

    What are you trying to add to your theme’s functions.php file?

    I don’t think any of the code examples in the FAQ will help with your issue. First follow the steps above to rule out a conflict with your other plugins or theme.

    I don’t see a [functions.php] file

    Typically, WordPress themes contain a functions.php file where you can add unique features to your site.

    If your theme doesn’t have a functions.php file, you might be able add one or create new plugin with your functionality changes.

    I recommend you hire a developer to help you customize your WordPress site.

    I’ve deactivated all plugins and changed the themes to both the twenty seventeen and twenty nineteen themes after which I reactivated Force Login. Same result. After entering the user ID and password, I’m taken right back to the login page. I can click on the link below the password box where it says to go back to the site. That does take me to the home page and I am logged in.

    I thought one of the FAQS talked about editing the functions.php file if the redirect wasn’t working. I was not looking in the themes folder for that file.

    Hiring a developer is not an option. This is a volunteer group trying to create a website as a central repository of information for their functions. There is no budget or revenue stream available.

    Plugin Author Kevin Vess

    (@kevinvess)

    I’ve deactivated all plugins and changed the themes to both the twenty seventeen and twenty nineteen themes after which I reactivated Force Login. Same result.

    What happens if you deactivate Force Login? Does the issue still occur?

    Does your web host use server-side caching and did you clear it after deactivating all plugins and switching themes?

    Who is your hosting provider? Some web hosts might add their own required plugins or server-side functionality to WordPress sites on their hosting.

    One other thought, check your .htaccess file on your server to make sure there isn’t something extra in there that might be causing this.

    I thought one of the FAQS talked about editing the functions.php file if the redirect wasn’t working.

    The FAQ mentions editing your theme’s functions.php file to set a specific URL to always redirect users to; otherwise it defaults to either the URL users tried to visit or standard WP functionality when there is no ?redirect_to= query string.

    Hiring a developer is not an option.

    You might want to try asking your web hosting for support; they might be able to help you diagnose why after successful login, you’re taken back to the login screen.

    The issue goes away if I deactivate ForceLogin. I can login and out with no trouble. I’ll check with my hosting provider about server side caching. The host is Rochen.

    I think I found the issue. I have a global redirect in place to have all the pages secured with the site’s SSL. Typing the URL as volunteerexecutiveboard.com would not work, but typing it as https://volunteerexecutiveboard.com would. I think the plugin was trying to redirect to the non secure page, which was being seen as a new page, hence the new prompt for the password. I’ve deleted and recreated the redirect and it seems to be working now. I’m going to try from a different computer at work tomorrow to verify this.

    Plugin Author Kevin Vess

    (@kevinvess)

    Ah– yes! I’m glad you were able to get this resolved.

    You need to configure your DNS or server to redirect HTTP requests to HTTPS before the site loads, otherwise you’ll experience issues like this.

    Related topic:
    https://wordpress.org/support/topic/login-page-loop-2/

    Be sure to rate and review my plugin to let others know how you like it.

    Thanks for using Force Login!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Login Loop’ is closed to new replies.