Skip to:

User pages and error-404

Viewing 8 replies - 1 through 8 (of 8 total)

  • John James Jacoby


    What version of bbPress and what theme you’re using are always helpful. bbPress takes measures to prevent incorrect 404 notices, so it’s likely a theme is resetting those flags afterwards, or it’s a bug.



    Sorry, I should have included this info in my initial post.

    I’m using the bbPress plugin version 2.1.1
    My theme is custom built using Justin Tadlock’s Hybrid Core version 1.4.0.

    I don’t believe there should be any pre-existing theme conflict with the /users/username permalink structure, but obviously there is something that I have overlooked. If I switch to TwentyEleven, I’m not getting a 404 on user pages, so it has to be something related to the Hybrid framework. Hopefully I can track it down.



    Did you ever get a solution to this?

    My admin’s user profile works correctly but all other users throw a 404.

    I am using bbpress 2.1.2, wp 3.4.1 and slightly modified twenty-ten theme.



    Same as aaclayton, user page is flagged as 404 but it is loading just OK. My first impression is that goes for the users registered themselves. Admin’s profile and profiles for admin added users don’t get flagged as 404. Will have to investigate further.



    I had this problem – only happening to non-admin users and mainly in IE – and I found these threads helpful:

    The workaround to set the status header manually to 200 worked on my site (though at some point I should work out what it is in the theme that’s causing it and fix it properly).



    I got the same problem. The problem only occurs when the user has not made any posts yet. WordPress throws in a 404 error since the loop fails for the user. This is a bbPress bug and should be fixed.

    Shashank Shekhar


    I am getting the same issue in bbpress 2.2.4 with wordpress 3.5.1. In my site Profile pages have body class “error404” included automatically. Other bbpress pages are fine. “error 404” is defined with styles in theme which disturbing layout of the page. What I have done is just put bbpress/single-user.php inside my theme for custom editing (still not edited, just putting inside the theme created the issue).
    My theme is built using wordpress twenty-twelve theme very little customized.

    This issue is also mentioned here in bbpress trac: , closed, but dont know why I getting this problem.

    Is this really fixed with bbpress? Please let me know what I can do to fix the problem?



    Well, this hack ( correct the 404 error :
    function fix_bbp_404() {
    global $wp_query;

    if ( $wp_query->bbp_is_single_user ||
    $wp_query->bbp_is_single_user_edit ||
    ) {
    $wp_query->is_404 = false;
    // Unset nocache_headers
    foreach( wp_get_nocache_headers() as $name => $field_value ) {
    @header( “{$name}: ” );
    // Set status 200
    status_header( 200 );
    add_action( ‘wp’, ‘fix_bbp_404’ );

    I tried the trunk version but didn’t get any result… Hack above fix the issue… even if it return wrong title.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar