• Hi there,

    I am having troubles with importing some fields. See screenshot on https://dl.dropboxusercontent.com/u/10135649/import_users_from_csv.jpg

    No problem with Username, Email, Password and display_name. Imported user is correctly created and can log in.
    But, user_url, first_name and last_name are not imported. Screenshot also shows the wp_users and wp_usermeta tables. As you can see, fieldnames are correct (I think) but value remains empty.

    Any suggestions what is going wrong?

    Thx.

    Erik

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

    (@carazo)

    @whitehart

    This is really strange, it works correctly on thousends of site.

    I could give you personal support but yes, this would be premium support. Maybe something in your system or file is creating the problem.

    Thread Starter erikwillemse

    (@erikwillemse)

    Hi Javier,

    You are right. I have tested it on another wordpress install and your plugin works fine there.

    I am going to check in my functions.php and other plugins what might be the cause of the issue on my other install.

    Regards,

    Erik

    Plugin Author Javier Carazo

    (@carazo)

    @erikwillemse

    Thanks 🙂

    Please make a good review or a little donation in order to help us to be able to continue giving the best support.

    Thread Starter erikwillemse

    (@erikwillemse)

    FYI: I had code in my functions.php that automatically assigned a new user to a group. When I remove the code below, the import works perfect. Great job!

    gr.E.

    —- removed code —-
    /* automatically add a user to a group NOTE: 999 is “Alle AA-klanten” */
    /* based on http://wp-customerarea.com/snippet/automatically-add-a-user-to-a-group/ */
    function cuar_add_new_user_to_managed_group( $new_user_id ) {
    $destination_group_id = 999; // put the real group ID here
    $is_manager = false; // set to true if you want that user to be a manager within that group
    $is_member = true; // set to true if you want that user to be a simple member of that group

    $group_addon = cuar_addon(‘managed-groups’);

    if ( $is_manager ) {
    $group_addon->add_manager_to_group( $new_user_id, $destination_group_id );
    }
    if ( $is_member ) {
    $group_addon->add_member_to_group( $new_user_id, $destination_group_id );
    }
    }
    add_action( “user_register”, “cuar_add_new_user_to_managed_group” );

    ——

    Plugin Author Javier Carazo

    (@carazo)

    This importer use standard WordPress API functions so any hook is called so as you can see, the problem was this one.

    Thanks. Do not forget review or donation please 🙂

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

The topic ‘problem with importing some fields’ is closed to new replies.