Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbPress installed in sub-directory

  • We’re seeing a similar problem to that described here:

    http://bbpress.org/forums/topic/login-redirection-prevents-access-to-admin-area#post-63148

    in which the redirection after login doesn’t work correctly. Our installation is at:

    https://www.example.org/forums/

    which is the exact value of the “bbPress address (URL)” setting on the general settings page.

    On the index page, wp_referer_field() returns “/forums/index.php”. This is embedded in the login form, and passed to bb-login.php.

    bb-login.php calls bb_get_uri(), passing it that value. bb_get_uri() then appends that value to the value of bb_get_option(‘uri’), which returns the full URL above.

    The upshot is that bb-login.php tries to redirect to https://www.example.org/forums/forums/index.php, which is obviously incorrect. So it looks as though either:

    a) there’s a bug in bb_get_uri(); it should iterate through each directory in the bb_get_option(‘uri’) path in reverse order, and compare them with each directory in $resource, eliminating duplicates.

    b) login-form.php shouldn’t call wp_referer_field()

    - Bobby

You must be logged in to reply to this topic.