Reply To: user profile link giving a 404 error
Hi, i met this issue, and for future ppl who would face the same problem, here is a simple fix that worked for me : http://zzlatev.com/bbpress-404-header-in-users-profiles/
it’s an issue with 404 being catched and not letting bbpress show the profile page, evenif it exists. You can add this in the theme function file :
function bbp_fix_users_404_headers() {
if ( ! function_exists( 'bbpress' ) ) return;
$bbp = bbpress();
if ( !empty( $bbp->displayed_user ) && is_404() ) {
global $wp_query;
$wp_query->is_404 = false;
status_header( 200 );
}
}
add_action( 'wp', 'bbp_fix_users_404_headers' );