[buddypress-trac] [BuddyPress] #2032: Blank page after login

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Feb 21 05:31:27 UTC 2010


#2032: Blank page after login
-------------------------+--------------------------------------------------
Reporter:  Pressography  |       Owner:     
    Type:  defect        |      Status:  new
Priority:  major         |   Milestone:     
Keywords:                |  
-------------------------+--------------------------------------------------
 When I log into my blog (MU 2.9.1.1) w/ BP 1.2 activated, and no
 redirect_to value, I often get a blank page instead of into the wp-admin
 area.

 When I deactivate BP, everything works as it's supposed to. I tracked the
 problem down to this section of code in the bp_core_login_redirect
 function:

 if ( false === strpos( wp_get_referer(), 'wp-login.php' ) && false ===
 strpos( wp_get_referer(), 'activate' ) && empty( $_REQUEST['nr'] ) )
 return wp_get_referer();

 The wp_get_referrer() function can return false, which it is doing in this
 case, and that's why the blank page shows up.

 I suggest adding some logic here to check if wp_get_referrer() is false,
 and if it is, simply redirect to the root domain. This could probably be
 easily added to the if statement in the first line that I copied into this
 ticket.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2032>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list