Skip to:
Content
Pages
Categories
Search
Top
Bottom

User pages and error-404


  • aaclayton
    Participant

    @aaclayton

    Hey everyone,

    Unfortunately I’m having another minor hiccup in my bbPress 2.1 implementation. I’ve done some fairly heavy modifying of bbpress user profile pages, and somewhere along the line I have induced wordpress to flag profiles as error-404.

    My site homepage is http://tamrielfoundry.com, which can be accessed using username=test and password=test.

    My own user profile page http://tamrielfoundry.com/users/atropos/ works just fine, no 404.

    A different user (who has not made any posts, which could be the cause) gets error-404 as a class in the body declaration. http://tamrielfoundry.com/users/blade/

    Regardless, the fact that this content is getting flagged as 404 doesn’t seem to affect the page actually displaying the relevant content, however obviously it would be preferable if I can get the site to recognize user pages for existing users as non-404.

    Let me know if I can provide any relevant info, any help would be greatly appreciated.

    Andrew

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

  • John James Jacoby
    Keymaster

    @johnjamesjacoby

    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

    @aaclayton

    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

    @bryanforst

    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

    @entr

    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

    @noh

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


    Niels van Renselaar
    Participant

    @nielsvanrenselaar

    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
    Participant

    @shashankitsoft

    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: http://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

    @gabrielstuff

    Well, this hack (http://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.