Support » Plugin: Ultimate Member – User Profile, User Registration, Login & Membership Plugin » Existing User Roles not allowing registration

  • Resolved Mohal

    (@mohal)


    Hi,

    I have a WordPress website where I have used Ultimate Member plugin. After few plugin updates now, old user roles are not allowing user to register. I have an additional field on register form, which asks user for the role for which she is registering. That field (dropdown) has two existing user roles but whatever role a user selects form just refreshes. The funny thing is data of user is stored in DB but without any role. However, if I add a new user role and then put it in the Roles dropdown on the registration form. Its value is successfully saved in DB with other user information.

    So, can you explain what is going on here? I don’t want to delete all roles and create them again because I have old users registered with those roles. Is there a way of resetting old roles without losing the existing associations?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support mansurahamed

    (@mansurahamed)

    Hi @mohal,

    Are your old roles UM Custom Role? You can check this from Ultimate Member->User roles inside dashboard. In this listing UM Custom Role value should be Yes if that role is a UM custom Role. For security reason, user can only choose UM custom roles during registration at the latest version of UM. If your old roles aren’t um custom role, you need to create them again and you can easily bulk assign them from the Users menu inside dashboard.

    If your old roles are already UM custom roles, please go to Ultimate Member->Form->Your registration form->Edit and remove your old role field try recreating this field and see if that solves your issue.

    Thanks.

    Hi @mansurahamed,

    No, both of the old roles are not UM Custom Roles. Those roles came with the plugin and I used them as is. And I think in previous version of UM, non-UM Custom roles were also available to be used in dropdown.

    I am not sure what is the security reason that changed this functionality but I can create two new identical roles. I hope there will be no such change in future.

    Thanks!

    Hi @mansurahamed,

    So, UM already has Employer and Candidate roles. I was using both of them in the dropdown for user registration but now as per your instructions I cannot use them. So, I am trying to create two new custom roles with same name but UM is not allowing me to create them. I cannot change the names and I cannot use the existing roles in dropdown. So, please suggest what should I do?

    One more thing, in UM Settings > Appearance > Registration Form Settings I see an option, “Registration Default Role” where I can select the role. Is there a way that I create a separate form for Employers and when someone registers from there he/she is automatically registered as Employer?

    Thanks!

    Plugin Support mansurahamed

    (@mansurahamed)

    Hi @mohal,

    You can create two role with the same name. You can try using this plugin https://wordpress.org/plugins/user-role-editor/ to delete your old roles and then you should be able to recreate them. However, please make sure to create couple temporary role first and assigned those users to those so that you can reassign them to the new ones from the temporary roles. It’s recommended to take a complete backup of your site before.

    Yes you can create specific registration form to assign a specific role. Please go to Ultimate Member->Forms->Any registration Form->Edit->
    Apply custom settings to this form ( right side) -> Assign role to Form and select the role that you want user’s to give when they are registered using this form.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Existing User Roles not allowing registration’ is closed to new replies.