Notifications
Clear all

wpForo 1.x.x [Closed] users are not able to edit their profile

8 Posts
2 Users
0 Likes
3,309 Views
Posts: 11
Topic starter
(@emanuelusa)
Active Member
Joined: 7 years ago

Hi there, once a person creates a profile on our site, and then comes back later to edit their profile via the front end they are taken to this url and a get a error message. url of   http://volitudesports.com/wp-admin/profile.php  error message of:  Sorry, you are not allowed to access this page. 

I dont think that this is the correct URL for editing their profile. but I have left all of the default settings in place for wpForo. If it helps any we also are using your add-ons on of Private Messages and Embeds.

Thank you

Robert

 

7 Replies
Posts: 11
Topic starter
(@emanuelusa)
Active Member
Joined: 7 years ago

i am having the same problem as this person was having, is the fix really to add the lines of codes that are mentioned in the thread??? seems like something you should fix sooner rather than later

 

Robert
Posts: 10506
Admin
(@robert)
Support Team
Joined: 8 years ago

Put this code in current active WordPress theme functions.php file:

function wpforo_custom_profile_url( $url, $userid, $scheme ) {
    if(!is_admin()){
        global $wpforo;
        return $wpforo->member->get_profile_url($userid);
    }
    else{
        return $url;
    }
}
add_filter( 'edit_profile_url', 'wpforo_custom_profile_url', 10, 3 );
Posts: 11
Topic starter
(@emanuelusa)
Active Member
Joined: 7 years ago

Hi there, I add the code and got an error message, unable to parse error on line 3

Posts: 11
Topic starter
(@emanuelusa)
Active Member
Joined: 7 years ago

Parse error: syntax error, unexpected 'function' (T_FUNCTION) in /home/volitud8/public_html/wp-content/themes/dt-the7/functions.php on line 3

Page 1 / 2