Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Compatible Plugins › BuddyPress › New user can not register
- This topic has 5 replies, 3 voices, and was last updated 5 years, 9 months ago by
Themosaurusrex.
-
AuthorPosts
-
Gilles DeronParticipant@gillesderon
- 31 Topics
- 97 Posts
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
September 11, 2019 at 10:31 #7687@themosaurusrex- 0 Topics
- 2048 Posts
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:
Cheers,
September 12, 2019 at 17:54 #7709Gilles DeronParticipant@gillesderon- 31 Topics
- 97 Posts
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,
September 16, 2019 at 11:03 #7728@themosaurusrex- 0 Topics
- 2048 Posts
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,
September 16, 2019 at 13:45 #7736@themosaurusrex- 0 Topics
- 2048 Posts
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,
September 23, 2019 at 12:02 #7770 -
AuthorPosts
Hi there,
This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!
Best regards,
The Themosaurus team.
The topic ‘New user can not register’ is closed to new replies.