• Resolved Torre Capistran

    (@vkean2011)


    So we have the following recommended code in our functions file to set a custom login page and allow users to be redirected to the page they were trying to visit upon successful login. However, there are certain wordpress functions (like the password reset page for example) that send users to the login page directly with no redirect value. this results in users being presented with a completely blank (100% white / blank) page after logging in.

    // Force Login plugin modifications —

    // Custom Login URL
    function my_login_page( $login_url, $redirect) {
    return site_url(‘/welcome/?redirect_to=’.$redirect);
    }
    add_filter( ‘login_url’, ‘my_login_page’, 10, 2 );

    As an example here is an example of a url that would result in a blank page after logging in: https://website.com/welcome/?redirect_to=

    Please let me know what should be adjusted or how to provide you with the correct info to troubleshoot further.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi @vkean2011 regarding the white screen, you’d need/want to check any error logs you may have via your hosting panel or any debug.log file found in the wp-content directory via FTP. That may or may not provide more information about why the white screen is occurring.

    Beyond that, I’m not sure what to provide for you since we don’t do anything with the login process like that. Right now, the key part of our plugin is hooking in to the user registration process and when a new user is created, marking them as moderated. With that, we do what we can to handle what they can and cannot access.

    BuddyPress core handles all the rest of the login/registration details.

    Thread Starter Torre Capistran

    (@vkean2011)

    Michael, first of all you’re super fast at replying which made my day ?? Second of all, I deeeefinitely posted this in the wrong plugin support forum – please accept my apology and if moderation allows this can be deleted from your support forum as it isn’t related to your plugin ?? However don’t be surprised if I do pop in soon with an actually related question ?? Have a great day!

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    No worries on the misplaced location, and glad we could help make your day ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blank Page after logging in with no Redirect Value’ is closed to new replies.