Skip to:
Content
Pages
Categories
Search
Top
Bottom

Registration and Edit Profile Issue


  • AngelaQ
    Participant

    @angelaq

    I was tearing my hair out because the registration was just doing a loop back to whatever page I was on, and the edit profiles were going to a long URL that was like /members/author/username/group/1

    or something like that, can’t find it now. But I turned off Extended Profiles and now it works and Registration works and the Edit goes to my domainname url /your-profile

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

  • Earl_D
    Participant

    @earl_d

    Do you mind telling what version of Buddypress you are running since I am experiencing the same issue.


    AngelaQ
    Participant

    @angelaq

    2.5.3


    Earl_D
    Participant

    @earl_d

    Thank you. I have experienced the same thing and found that registration only works when the extended profiles turned off.


    Earl_D
    Participant

    @earl_d

    May I also ask what theme you are using on your site


    AngelaQ
    Participant

    @angelaq

    ColorMag


    Earl_D
    Participant

    @earl_d

    Thank you I am having hard time convincing folks that this is an issue https://buddypress.org/support/topic/users-cannot-register-since-update-2-53/
    Are you using any plugins or just plain BP?


    r-a-y
    Keymaster

    @r-a-y

    @angelaq – I think your problem is related to this:
    https://buddypress.org/support/topic/bad-link-to-profile-edit/#post-174602

    I’m quoting the workaround solution below:

    Since I’ve seen so many threads regarding it and I was having same issue.

    this is regarding 404 error page if you are on page profile/edit/group/1/

    Problem is group 1 is missing in your profile section.

    All you need to do is go into you DB and look for table: wp_bp_xprofile_groups

    Then look for id=2, Base

    then just change id=2 to 1 and that’s it.

    This does sound like a legitimate bug.

    I’ve opened an issue about this here:
    https://buddypress.trac.wordpress.org/ticket/7109


    AngelaQ
    Participant

    @angelaq

    Erg, I’ll have to see if I have db access with my plan… seems like something they could fix with an update? Thanks for discovering the solution!


    r-a-y
    Keymaster

    @r-a-y

    If you do not have access to your database, you can temporarily put the following snippet in your theme’s functions.php or wp-content/plugins/bp-custom.php file:

    function ray_xprofile_group_fix() {
    	global $wpdb, $bp;
    
    	if ( empty( $_GET['xprofilefix'] ) || empty( $bp ) ) {
    		return;
    	}
    
    	$wpdb->query( "UPDATE {$bp->profile->table_name_groups} SET id = 1 WHERE id = 2" );
    }
    add_action( 'get_header', 'ray_xprofile_group_fix' );

    Then, go to your website and append ?xprofilefix=1 to your website URL.

    eg. example.com/?xprofilefix=1

    This should change your profile group ID back to 1. Next, check your registration page and “Edit Profile” link and see if they work.

    Once you have confirmed that it works, remove the code snippet from your theme’s functions.php or bp-custom.php file.


    AngelaQ
    Participant

    @angelaq

    Er, that just totally shut down my site — I have a 500 error now, and I can’t go back in (because of the 500) to take out that snippet, AND my hosting guy is on a well-deserved vacation!


    r-a-y
    Keymaster

    @r-a-y

    Sorry to hear you had trouble applying the snippet. I tested it locally before posting and it worked for me.

    How did you add the snippet? If you have FTP access to your server, you should be able to navigate to the file to open and remove the snippet.


    AngelaQ
    Participant

    @angelaq

    Turns out my server guy doesn’t leave til Sunday, so he commented it out… It was this line:

    if ( empty( $_GET['xprofilefix'] ) || empty( $bp ) ) {

    and the error thrown was:

    PHP Parse error: syntax error, unexpected '&', expecting ']' in /home/www/webhost8/heartsthroughtime.com/htdocs/wp-content/themes/colormag/inc/functions.php on line 18


    AngelaQ
    Participant

    @angelaq

    Oh! I see the problem! I grabbed the code from the email this site sent me, but I see above that what you input was different! Trying it now cutting and pasting from this website. (The email had added some ampersands, etc


    AngelaQ
    Participant

    @angelaq

    that worked!! But should I now see 5 tabs of Field Groups that all say “Base (Primary)” when I go to Profile Fields under Users? Each of these have 5 fields called “Name (Primary) (Required)”.

    Note that this is a new install. I’ve never used BuddyPress before and tried using xTended Profiles and gave up…


    r-a-y
    Keymaster

    @r-a-y

    that worked!!

    Glad to hear you’re up and running!

    But should I now see 5 tabs of Field Groups that all say “Base (Primary)” when I go to Profile Fields under Users?

    No, you shouldn’t.

    You should leave the first “Base (Primary)” tab alone, but do delete the rest of them.

    Do the same for the “Name (Primary)” field in the “Base” group. Keep the first one, but delete the rest.

    Note that this is a new install. I’ve never used BuddyPress before

    This does sound like a bug. It would be great to retrace your steps so we can duplicate this problem. Did you activate / deactivate / activate the plugin multiple times?

    Same goes for the components list under “Settings > BuddyPress > Components” in the WP admin dashboard. Did you uncheck / check / submit certain components multiple times?


    AngelaQ
    Participant

    @angelaq

    OK, will do!

    On retracing– I don’t think I uninstalled and reinstalled BP, but I know I did check/uncheck/check the Extended Profiles setting because it wasn’t working, then I thought I found a solution, but nope, so turned it off again, etc. It is possible I did that 4 times…


    AngelaQ
    Participant

    @angelaq

    Hmm, there doesn’t appear to be a way to delete the field groups, or the individual fields…


    AngelaQ
    Participant

    @angelaq

    I just tested by adding a new field, and for that new field, I can delete it, but perhaps because these Name ones are considered vital, there’s not a way to delete them…


    r-a-y
    Keymaster

    @r-a-y

    Hmm… I forgot that those “Name” fields were not deletable from the admin dashboard.

    I would recommend the following:

    1. Disable the Extended Profiles component
    2. Tell your developer to go into your database and drop the following DB tables:
    – wp_bp_xprofile_data
    – wp_bp_xprofile_fields
    – wp_bp_xprofile_groups
    – wp_bp_xprofile_meta
    3. Next, go back to “Settings > BuddyPress > Components” and re-enable the Extended Profiles component

    This should recreate the Extended Profiles database tables from scratch and hopefully things should be okay afterwards.


    AngelaQ
    Participant

    @angelaq

    That worked! He gave me access to the database (yay!) and I dropped them, and re-enabled it, and those groups and fields are successfully gone!

    Thank you!!!


    AngelaQ
    Participant

    @angelaq

    Which, broke the profile again. No worries, I’m a pro at this now, LOL, so I changed the group ID to 1, (it was easier now that I have DB access)…


    r-a-y
    Keymaster

    @r-a-y

    Which, broke the profile again. No worries, I’m a pro at this now, LOL, so I changed the group ID to 1

    This is very weird indeed. Not sure why the group ID is not set to 1 even after purging the Extended Profile database tables and doing a fresh install of those tables.

    We’ll try to duplicate this when we have a chance.

    Thanks for bringing this to our attention.

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