Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress not working when WP files are running in a subdirectory


  • sacstephen
    Participant

    @sacstephen

    I have a WP 2.9.2 install and I have opted to have the WP files installed in a subdirectory. After installing BP 1.2.2 I kept getting 404 errors and was unable to login as administrator. The only solution I was able to find was to use FTP to delete the BP files from the plugin database. Now everything is back to the way it was before, without BP. I should also say that I am using the BP Theme Pack to make my theme BP compatible.

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

  • r-a-y
    Keymaster

    @r-a-y

    Did you enable pretty permalinks? (Settings > Permalinks)

    Was a .htaccess file generated in the root of your WP install?


    sacstephen
    Participant

    @sacstephen

    I have permalinks set to custom structure with a value of “/%category%/%postname%/”

    my .htaccess file on the root directory reads as follows:

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /index.php [L]

    </IfModule>

    # BEGIN WordPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /index.php [L]

    </IfModule>

    # END WordPress


    sacstephen
    Participant

    @sacstephen

    I’m hoping by posting to this question again it will get bumped and maybe someone will have an answer. Going though the forum, I see that I am not the only person having these problems (the same question has been raised in a few different ways, but the core issue is the subdirectory install of WP). Please help us resolve this issue.

    Thanks in advance for your help.

    Subdirectory installs work fine for me, try the default theme and see if that works first.


    Gianfranco
    Participant

    @gian-ava

    sacstephen, try to put this in bp-template.php

    function my_bp_override_core_domain() {

    $domain = get_bloginfo('url');

    return $domain;

    }

    add_filter('bp_core_get_root_domain','my_bp_override_core_domain');

    If you don’t have this file, create it in wp-content/plugins

    Let us know.


    sacstephen
    Participant

    @sacstephen

    I created the bp-template.php file with the entry above and that got it a little bit closer to complete functionality, all the links except the one to the main page now work (the link to the main page in the BP bar at the top returns a 404 error).

    A more serious issue arises when trying to login to the site as administrator through WP. After filling out the name and password on the WP login screen I am redirected to a 404 error. The only way to get things working again is to deactivate BP and BP Theme Pack.

    Baby steps I guess. Thanks for your continued support on this issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Buddypress not working when WP files are running in a subdirectory’ is closed to new replies.
Skip to toolbar