Info
- 12 posts
- 6 voices
- Started 3 years ago by websydaisy
- Latest reply from Ashfame
- This topic is not resolved
ADD NEW goes to 404 for logged out users
-
- Posted 3 years ago #
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:
which throws up the 404
I would appreciate any help. Thanks!
-
- Posted 3 years ago #
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.
-
- Posted 3 years ago #
Looks like you integrated with WordPress 2.7.1 - did you integrate the logins? What version of bbPress did you install?
-
- Posted 3 years ago #
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%3D1So 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.phpThat 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-loggedMaybe try disabling MultiViews or checking your htaccess file?
-
- Posted 3 years ago #
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.
-
- Posted 3 years ago #
chrishajer, I installed bbpress 0.9.0.4 , and they are sharing a database, use the same login, etc.
-
- Posted 3 years ago #
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.
-
- Posted 3 years ago #
What does your htaccess file look like?
-
- Posted 3 years ago #
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
-
- Posted 2 years ago #
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--
-
- Posted 2 years ago #
WP 2.8.5 + bbP 1.0.2 works fine for me. So the problem is setup specific.
-
You must log in to post.