New user can not register

This topic contains 5 replies, has 3 voices, and was last updated by  Olivier Cardoen 9 hours, 9 minutes ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7687

    Gilles Deron
    Participant
    • 39 Posts
    @gillesderon

    Hi dear Support Members,

    I am experiencing a serious issue with my website.
    It’s impossible for a new user to sign in to become a member.

    You can fill in the registration page, but when you hit the Submit button, the page is just refreshed. And the new user is not registered. That’s a big problem.

    Another question on the same page:
    On the registration page, you can see 2 areas:
    1. Account information
    2. Profile information
    On each area, you can see a Login is asked to create.
    I think it’s one too much… only one login has to be asked or the user will be confused.

    Please, tell me you can help with this 2 time-consuming issues.

    Thank you for your work.

    Gilles Deron

    #7709

    Olivier Cardoen
    Participant
    • 338 Posts
    @themosaurusrex

    Hi @gillesderon,

    1) Did you try to register new users when disabling your membership management plugin? Usually, some settings for these plugins can cause strange behaviors during the website testing and setup phases.

    2) The duplicate login issue seems more related with your french translation files than a bug as the required “Username” and “Name” fields are both translated by “Identifiant” on your site (please see attached). Unfortunately both of these info seems required for WP and BP to perform the registration step correctly. Maybe some custom code could help you to dynamically create usernames based on names during the registration phase or remove the full name and use the username sitewide instead.

    For some instance, you could give a look to the following post as it addresses a similar issue:

    BuddyPress Better Registration – Part 1

    Cheers,

    #7728

    Gilles Deron
    Participant
    • 39 Posts
    @gillesderon

    Hi @themosaurusrex,

    Yes, I tried with the following plugins disabled:
    – PMPro,
    – PMPro BP add-on,
    – myCred,
    – Logout Redirect to Mainsite for Multisite/BuddyPress,
    – BuddyPress Login Redirect to Profile,
    – BP Custom Functionalities.

    The probleme is still the same: a new user can not register…

    What other plugin should I disable for this to work?

    About the twice-asked login, I add some custom CSS and some PHP in functions.php
    Custom CSS:

    /* Hide the full name field on Registration and Edit Profile page */
    form div.field_1 {
        display:none !important;
    }

    Custom PHP:

    // Buddypress suppression de Full Name au profit de Login
    /**
     * Use the username as display name.
     */
    function buddydev_inject_username_as_fullname() {
        $_POST['field_1'] = $_POST['signup_username'];
     
    }
    add_action( 'bp_signup_pre_validate', 'buddydev_inject_username_as_fullname' );
    /**
     * Disable client side required attribute in input field to avoid failing of form submission.
     * All modern browsers will not submit if a field is marked as required and does not have the value.
     *
     * @param array  $atts input field attributes.
     * @param string $field_name field name.
     *
     * @return array
     */
    function buddydev_disable_fullname_required_attributes( $atts, $field_name ) {
    
    	global $field;
    	// If your fullname field has a different id(should not happen in normal cases), please use that
    	// Default value '1' will work for most people.
    	$fullname_field_id = 1;
    
    	if ( $field && $fullname_field_id !== $field->id ) {
    		return $atts;
    	}
    
    	foreach ( $atts as $key => $value ) {
    		if ( 'required' === $value ) {
    			unset( $atts[ $key ] );
    			break;
    		}
    	}
    	return $atts;
    }
    
    add_filter( 'bp_get_form_field_attributes', 'buddydev_disable_fullname_required_attributes', 10, 2 );

    I hope this can help other users…

    Best regards,

    #7736

    Olivier Cardoen
    Participant
    • 338 Posts
    @themosaurusrex

    Hi @gillesderon,

    I have really no idea about what could be causing this issue.

    To find more clues, you could deactivate all plugins except for BuddyPress and maybe activate the default WP theme. If the issue persists, something might be wrong with BP and you might be better helped by the plugin authors.

    If the issue disappears, you could reactivate the plugins one by one until the issue reappears. Then, you will know which plugin is causing it. Hopefully, it won’t be a required plugin and you will be able to continue your work without it.

    Cheers,

    #7756

    aurelia
    Participant
    • 10 Posts
    @aureliael

    Hello,

    I also have the same issue, new users can’t register. But for me when they click on register nothing is happening.

    Can you please help me.
    Regards.

    #7770

    Olivier Cardoen
    Participant
    • 338 Posts
    @themosaurusrex

    Hi @aureliael,

    I have really no idea about what could be causing this issue.

    To find more clues, you could deactivate all plugins except for BuddyPress and maybe activate the default WP theme. If the issue persists, something might be wrong with BP and you might be better helped by the plugin authors.

    If the issue disappears, you could reactivate the plugins one by one until the issue reappears. Then, you will know which plugin is causing it. Hopefully, it won’t be a required plugin and you will be able to continue your work without it.

    Cheers,

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.