Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    https://wordpress.org/plugins/wpmuldap/

    I’m tagging this for that plugin dev, sadly this is clearly an issue with it 🙁

    Blank pages are PHP errors, though, so turn on WP_DEBUG and also check your server error logs.

    Thread Starter kwgagel

    (@kwgagel)

    WP_DEBUG is just showing deprecated errors. I cleaned up the ones I could trace down. They do not seem to be causing the issue at hand though.
    The one error I can’t seem to fix is in sunrise.php which is for the “WordPress MU Domain Mapping” plugin. That error is “wpdb::escape is deprecated”
    There are no other errors logged in either my php error log file or the wp debug.log file.

    Thread Starter kwgagel

    (@kwgagel)

    While my understanding of wordpress coding and php in particular is pretty limited I have been able to trace the login process through and into the ldap lookup and back into the wp-login.php file. That is where its getting hazy for me. It’s starting to look like there is a redirection issue but I haven’t figured the coding out enough to say for sure it is/isn’t.

    After the ldap authorization is done and the data is returned to wp-login.php the $user array doesn’t have anything in “[user_url] => “. I don’t know if this matters at this stage or not, perhaps its taken care of later? Any suggestions?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    The one error I can’t seem to fix is in sunrise.php which is for the “WordPress MU Domain Mapping” plugin.

    That’s not a big error.

    I wish I knew the LDAP plugin enough to tell you 🙁

    Thread Starter kwgagel

    (@kwgagel)

    Mika,

    I have finally figured out what the problem is and I’m trying to find a fix that won’t break anything.

    In the wp-login.php there is a series of if statements that check various multisite scenarios. Those if statements do not end with an else condition. When I add an else condition I can make the redirect go to the users dashboard. I’d like to just send them to their primary blog.

    Would you happen to know the function to use that will retrieve the user’s primary blog?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I don’t know that there is one, since ‘primary’ isn’t really a concept.

    Thread Starter kwgagel

    (@kwgagel)

    Primary, 1st, only one, whatever I don’t really care. I just need a function that I can use to either provide the user’s first (perhaps only) blog to the $redirect_to variable.

    I’m trying various functions from the Code Reference but each seems to have a limitation – which it seems might be the root cause of my issue anyway.

    At the end of the day I just need to be able to provice a url for any blog to which the user is capable of logging into to the $redirect_to variable.

    Any suggestions?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    You can get a list of them withg get_blogs_of_user( ) but I don’t know how to specify PRIMARY is the point.

    Thread Starter kwgagel

    (@kwgagel)

    I’ve tried using that but it returns an empty array. We’re using BuddyPress as well. I’ve found a buddypress call that can get it. I’m just having trouble reliably make it work.

    Thread Starter kwgagel

    (@kwgagel)

    Mika,

    I’ve been able to get it to consistently log the user in and send them to their dashboard. I have had to customize the wp-login.php file to do that though.

    Details of what I did are here:

    Thread Starter kwgagel

    (@kwgagel)

    OK, that last post didn’t work with the link option, here is attempt two to provide the link.

    http://pastebin.com/6MXH7BeE

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Blank page after login’ is closed to new replies.