Skip to:
Content
Pages
Categories
Search
Top
Bottom

User pages and error-404

Viewing 8 replies - 1 through 8 (of 8 total)
  • @johnjamesjacoby

    Keymaster

    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.

    @aaclayton

    Participant

    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.

    @bryanforst

    Participant

    Did you ever get a solution to this?

    My admin’s user profile works correctly but all other users throw a 404.
    http://www.s4ndb0x.com/forums/forum/issues/

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

    @entr

    Participant

    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.

    @noh

    Participant

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

    http://stackoverflow.com/questions/6752773/the-webpage-cannot-be-found-http-404-randomly-and-only-in-ie9-windows-7

    http://serverfault.com/questions/251673/getting-404s-on-wordpress-site-but-only-from-ie-with-friendly-error-messages-tu

    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).

    @nielsvanrenselaar

    Participant

    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.

    @shashankitsoft

    Participant

    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: https://bbpress.trac.wordpress.org/ticket/1478 , 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?

    @gabrielstuff

    Participant

    Well, this hack (https://bbpress.trac.wordpress.org/ticket/1478#comment:7) 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->bbp_is_view
    ) {
    $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