Forums

Join
bbPress Support ForumsTroubleshootingADD NEW goes to 404 for logged out users

Info

ADD NEW goes to 404 for logged out users

  1. http://www.endsofearth.com/forum/

    If you are logged in and click on ADD NEW, it works just fine. If you are not logged in, then instead of getting the message that they need to log in, it is putting up a 404.

    It seems like whether you are logged in or not, it should just go to http://www.endsofearth.com/forum/?new=1 . . . if I go to that URL when I am not logged in, it gives me the appropriate message and link to log in. However instead it is attempting this for unlogged in users:

    http://www.endsofearth.com/forum/bb-login.php?re=http%3A%2F%2Fwww.endsofearth.com%2Fforum%2F%3Fnew%3D1

    which throws up the 404

    I would appreciate any help. Thanks!

  2. Nothing? No one? Dang I really need help with this. I can't find anything, and all appears to be set correctly. Everything else is working just perfectly, but this is a fairly important problem.

  3. Looks like you integrated with WordPress 2.7.1 - did you integrate the logins? What version of bbPress did you install?

  4. When my users click the same link while signed out, they get sent to a similar link:
    http://boards.weddingbee.com/bb-login.php?re=http%3A%2F%2Fboards.weddingbee.com%2F%3Fnew%3D1

    So it looks like bbPress is sending users to the right place. So I played around with your URL a bit:
    http://www.endsofearth.com/forum/bb-login.php?re=http://www.endsofearth.com/

    That didn't work either, so I stripped off the re= part completely:
    http://www.endsofearth.com/forum/bb-login.php

    That worked... suggesting that the problem is with the re= part and your htaccess file.

    Just when I was feeling clever, I did a quick Google search and ck had already figured it all out:
    http://bbpress.org/forums/topic/latest-discussions-add-new-link-problem-if-not-logged

    Maybe try disabling MultiViews or checking your htaccess file?

  5. Thanks, I gave that a shot, but sadly it did not make any difference. I had turned on multiviews so I could use pretty permalinks, but changed it back to default and turned off multiviews, but I still get a 404.

  6. chrishajer, I installed bbpress 0.9.0.4 , and they are sharing a database, use the same login, etc.

  7. I just realized it is doing the same thing on another bbpress forum I installed last year. I know it used to work however. Ugh.

  8. What does your htaccess file look like?

  9. You likely have something funky in a higher level htaccess file affecting your entire setup

    Notice how this works:

    http://www.endsofearth.com/forum/bb-login.php?re=http%3A

    but this doesn't

    http://www.endsofearth.com/forum/bb-login.php?re=http%3A%2F

  10. Well, I totally can't figure it out. I took the ultimate cop-out hack and in front-page.php, I removed

    <?php new_topic(); ?>

    and replaced it with ADD NEW
    <a href="http://www.endsofearth.com/forum/?new=1">ADD NEW</a>

    which works just fine, so I am happy with it.

  11. I am having the same issue. I am running 1.0.2 sharing cookies with WP 2.8.5. If a user is not logged in, and selects "add new", they are routed to my WP 404 screen. Instead of using the hack above, I've done the following hack so that the redirect is maintained. Note that it just strips the "http://" out of the redirect. Hopefully a real fix can be put in place for this.

    I've done some limited testing and this seems to work.

    In functions.bb-template.php I created the following function:

    function hackfixurl ($url){
    $url= str_replace("http://", "", $url);
    $url= str_replace($_SERVER["HTTP_HOST"], "", $url);
    return $url;
    }

    Then, on line 1590 of the same file, wrap the url with the new function like:

    $url = bb_get_uri('bb-login.php', array('re' => hackfixurl($url)), BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_USER_FORMS);

    Regards--

  12. WP 2.8.5 + bbP 1.0.2 works fine for me. So the problem is setup specific.

  13. You must log in to post.