Skip to:
Content
Pages
Categories
Search
Top
Bottom

Login/logout from admin bar does not work

  • I have a problem using the login/logout from admin bar. I think the problem has to do with wordpress is installed under a subdirectory /wp/. The login/logout should point to mmanytt.se/ and not mmanytt.se/wp/ witch generates a 404.

    I have a similar problem with the search function, which points to mmanytt.se/wp/?s=searchstring and not mmanytt.se/?s=searchstring.

    I’ve looked through the forums for a solution for about a month now, but i can’t find anything that works well. The rest of the page, like forums, groups and activities works fine and is under mmanytt.se/wp/, altough everything works fine with mmanytt.se/ too.

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

  • r-a-y
    Keymaster

    @r-a-y

    This is scheduled to be fixed in BP 1.3.

    In the meantime, open up /buddypress/bp-core/bp-core-adminbar.php and apply the code change listed on the following page as a temporary workaround:
    https://trac.buddypress.org/ticket/3052


    kvadd
    Member

    @kvadd

    Thank you r-a-y.

    I have essentially the same problem with the search form who direct it to mmanytt.se/wp/?s= instead of mmanytt.se/?s=. Is there any way to solve that?


    kvadd
    Member

    @kvadd

    I solved it, thanks to the link you posted before.

    In bp-core.php find the line
    $search_url = apply_filters( ‘bp_core_search_site’, site_url( $slug . $var . urlencode($search_terms) ), $search_terms );
    replace it with
    $search_url = apply_filters( ‘bp_core_search_site’, home_url( $slug . $var . urlencode($search_terms) ), $search_terms );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Login/logout from admin bar does not work’ is closed to new replies.
Skip to toolbar