• Resolved bangbingo

    (@bangbingo)


    When i import users with the roles as Parents, the message pops-up reading in red colors “Invalid role (parent)” and on checking the “Users” I find the names captured, but there names and other details are missing…and the final message reads “Errors, warnings and notices found” how would i fix this up. Will appreciate big time.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Javier Carazo

    (@carazo)

    @bangbingo,

    There are probably two problems. The first is that in the role column you have to use the role slug. If you use the slug you will not have this problem and they will be assigned correctly. As it is a non-standard role look where you created it to see the role.

    Regarding the rest of the data, you will have to use the corresponding meta key. Which one do you have problems with?

    Thread Starter bangbingo

    (@bangbingo)

    I am using Ultimate Member plugin, so i created these roles:

    Role: Teacher -> Role ID : um_teacher

    same way with students. How do i capture these roles to make them captured correctly?

    I hope i am not missing something.

    Regards

    Plugin Author Javier Carazo

    (@carazo)

    @bangbingo,

    The roles have no IDs, the roles have slugs.

    Anyway, it seems um_teacher is the slug of the role teacher, so you have to look for the slug of the student role.

    If you use it, it will work.

    Thread Starter bangbingo

    (@bangbingo)

    So, on the csv file, collumn for Role, what should i indicate so that it may capture the teachers role correctly??

    Plugin Author Javier Carazo

    (@carazo)

    You have to use the role slug.

    I understand it would be um_teacher but since I don’t use or know Ultimate Member I can’t tell you for sure.

    If you are a PHP developer you can invoke get_editable_roles() to see the roles available in your installation with all their data.

    If not, you can always use a plugin to help you with this task like this https://ww.wp.xz.cn/plugins/user-role-editor/

    Thread Starter bangbingo

    (@bangbingo)

    Thank you for the suggections, I really appreciate that.

    I followed the instructions and added the (um_teacher) on the role and it picked up well. But issue is when i finally import the users, the “NAMES” collumn on the Users menu is blank, meaning its not picking the names of the users imported.

    secondly, when i add collumn for Groups, since am using the ultimate member groups, i added the (um_group_name of group) on the groups collumn, but still it doesnt assign the users to those groups. Is there something i need to do to make them groups pick correctly?

    Thanks

    Plugin Author Javier Carazo

    (@carazo)

    As I told you before, you are not using the right meta keywords. If you read the Documentation tab, which you should always read before asking support; you will see that the names for example you can import them using the basic WordPress data: first_name and last_name.

    Regarding the second thing, I can’t tell you much because your problem is not directly related to us, but to Ultimate Members.

    We don’t offer compatibility with the complex data structures that UM may have, which I don’t know… and if you use standard data structures saving the data in usermeta you will just have to find in that plugin or they will tell you from their support which meta keys to use.

    Thread Starter bangbingo

    (@bangbingo)

    Thank you so much for the support, i truelly appreciate the help.

    Plugin Author Javier Carazo

    (@carazo)

    Thanks to you.

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

The topic ‘Importing Users Error Message’ is closed to new replies.