bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

404 errors on all posts - please help

(13 posts)
  • Started 3 months ago by f1f
  • Latest reply from chrishajer
  • This topic is not resolved
  1. My BBPress installation has been working fine but suddenly today I can't access the content on any of my posts. All the post titles are listed, but clicking on them gives a 404 error:

    http://www.f1fanatic.co.uk/forum/

    I have no idea what's caused this. It's been over a week since I made any changes to BBPress or the Wordpress installation it's integrated with.

    I've checked my MySQL database and all the forum data appears to still be in there, it just isn't displaying. Any ideas what's broken?

    Posted 3 months ago #
  2. I would say this is a mod_rewrite and permalink issue. If it was working before, then something changed with the host, maybe the .htaccess file in the forum directory, or the parent one. But, all you need to do to get around it, for now, is turn off the permalinks, to false.

    This URL works fine for a second:
    http://www.f1fanatic.co.uk/forum/forum.php?id=2

    Then it redirects to a permalink URL:
    http://www.f1fanatic.co.uk/forum/forum/motor-racing-discussion

    Maybe you moved the forum recently and did not update the permalink structure?

    Posted 3 months ago #
  3. No I haven't moved the forum. The last thing I changed - which must have been a week ago or longer - was adding the following code into the .htaccess file for Wordpress (not BBPress):

    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '/');

    Could that have had an effect? If so it seems odd that it took so long to manifest itself.

    Thanks for the speedy response by the way :-)

    Posted 3 months ago #
  4. OK I've tried changing the permalink settings and here's what happens:

    If I set them to 'none' - i.e. forums.php?id=1 the posts work
    If I set them to 'name based' - i.e. /forums/first-forum/ the posts do not work

    Obviously I would rather have name based if possible. Any thoughts?

    Posted 3 months ago #
  5. I think you need to set up permalinks on your server if you want pretty or name based ones. False works fine, so it's definitely a permalinks issue. Not sure why it was working before, but this is what needs to be done now:

    http://bbpress.org/documentation/faq/#pretty-permalinks

    Posted 3 months ago #
  6. i_xiter
    Member

    Had the same bug, when I installed bbpress for the first time today. I noticed that it didnt even create the .htaccess file.

    Posted 2 months ago #
  7. bbPress does not create the .htaccess file for you like WordPress does. I think in future releases they are considering creating it for you.

    http://trac.bbpress.org/ticket/838

    Posted 2 months ago #
  8. peuter
    Member

    I have both WP and bbP using the same .htaccess file, in root. So, is this OK:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Options +MultiViews

    Posted 1 month ago #
  9. That won't do anything at all for your bbPress installation I don't think.

    Posted 1 month ago #
  10. I am experiencing the same issues with my bbPress install. It was working fine before and I have not changed anything either. I figure the host (Dreamhost) has changed some configuration or other. I have contacted them and am waiting to hear back.

    Posted 1 month ago #
  11. No word back from Dreamhost support, but it appears as if many DH customers are experiencing similar issues with other applications. I managed to fix my issue by logging into my DH account and changing the PHP version from 5.2.x -> 4.4.x and then back to 5.2.x.

    Hope this helps someone :)

    Posted 1 month ago #
  12. matchfox
    Member

    i have the same problem. if i change the permalink settings to name-based, some of the links (like editing profiles), return a 404 error).

    Posted 1 week ago #
  13. matchfox: did you already try this?
    http://bbpress.org/documentation/faq/#pretty-permalinks

    If your site works without permalinks, it's most definitely an issue with the rewrite rules.

    Posted 1 week ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.