Skip to:
Content
Pages
Categories
Search
Top
Bottom

User profile links are broken


  • mohamedouqas
    Participant

    @mohamedouqas

    in my forum when they display links to the author or a user , when clicked they redirect to
    http://localhost/wordpress/members/root/ (or / username depends on user )
    but i get a not fount page . i have already a page named members .
    im using
    wordpress 4.6.1
    buddypress 2.7.2
    anyone have the same problem ?
    thank you

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

  • danbp
    Participant

    @danbp

    Check your forum settings and sync WP and BP users.

    Usually on a local site, and standard setup, while you use BP group forum, the forum slug is:
    http://localhost/groups/group_name/forum/
    If you use wampp, you should have a list of virtual hosts (aka site names), where you installed wordpress. This means also that wp is at the site root. If your site is called mario, you install wp there and then you should have http://mario/ Once BP is activated, you’ll get http://mario/members/ or http://mario/groups/ and so on…

    The link to the forum user/author/commenter is
    http://localhost/members/member_name/

    When you use bbPress as standalone forum (aside or without BuddyPress), the link looks like

    http://localhost/root_forum/single_forum/forum_name/
    Link to user is the same as the one indicated previously.

    More details here

    Installing Group and Sitewide Forums

    You can also follow the bbPress install guide if you use bbPress separately.


    mohamedouqas
    Participant

    @mohamedouqas

    @danbp , thank you for your asnwer , but i am not using groupes .
    and the http://localhost/wordpress/members/ works it shows all members . but when i click on a user i get a 404 on http://localhost/wordpress/members/username .
    i get the same error when i acces any user profile link from any page on my site .


    danbp
    Participant

    @danbp

    I mentionned “groups” because you asked about forum – usually bp+forum is group forum…

    What have you entered as site url in WP settings and what do you have in htaccess file ?
    Did you enabled pretty permalinks ?
    What is the permalink of your members page ? (the one under the page title, when you’re on the WordPress page editor screen)


    mohamedouqas
    Participant

    @mohamedouqas

    i’m enabling in permalinks setting the custom Structure with this value : /index.php/%year%/%monthnum%/%day%/%postname%/ .
    this is the permalink for my member page : localhost/wordpress/index.php/members/ (it’s working showing all members)

    and this is my htaccess in www/wordpress
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wordpress/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]
    </IfModule>

    # END WordPress


    mohamedouqas
    Participant

    @mohamedouqas


    danbp
    Participant

    @danbp

    localhost/wordpress/index.php/members/: this is wrong and shouldn’t be used – even if you think it is working. It is not and that’s why you get a 404

    This path should be localhost/wordpress/members/ or even localhost/members/
    You cannot have a slug to a file followed by a directory. This doesn’t work, never and nowhere.
    index.php is a file
    / is a directory
    members is a directory name

    Your htaccess is wrong too (at least for a standard install). Read here.

    Check your local server settings first and reinstall correctly WordPress.
    They’re hundreds of tutorials on the web. Select a recent one (> 2015) and follow the instructions.


    mohamedouqas
    Participant

    @mohamedouqas

    @danbp so i have to start over that’s the only solution there is ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar