Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Christian Wach

    (@needle)

    Hi ccline,

    To be clear, do your CiviCRM Contacts have the same “first name” and “last name”? Or is it just that their email addresses have the same format that you describe? Also, what is the process by which you are creating the WordPress users? Have you enabled the CIVICRM_WP_PROFILE_SYNC_BULK constant in the plugin?

    Cheers, Christian

    Thread Starter ccline

    (@ccline)

    Hi Christian,

    The CiviCRM contacts have the same “first name” and “last name”. Sometimes those contacts also have the same email prefix, so making the user name the prefix for the email wouldn’t help in some cases.

    The process being used is going to the contacts and selecting the ones to have an account created. Going to the actions tab and selecting the “Create WordPress Users from Contacts”. Yes the CIVICRM_WP_PROFILE_SYNC_BULK constant is active.

    Thank you, ccline

    Plugin Author Christian Wach

    (@needle)

    Hi ccline,

    Hmm, yes, I see what you mean. There is definitely a weakness in the “bulk create” code such that CiviCRM contacts with the same “Firstname Lastname” combination may not be created. When it encounters a duplicate, the code tries to create a unique WordPress username by adding in the “Middlename”, but that’s as far as it goes.

    I will need to write a routine of some sort that creates a truly unique username for each Contact for the process to work successfully. I can do this, but please be patient – I am extremely busy right now. Let’s leave this ticket open and I will attend to it as soon as I can.

    Cheers, Christian

    Thread Starter ccline

    (@ccline)

    Hi Christian,

    Thank you for the quick response. I see what you did, which makes sense. Using the middle name would create a unique identifier. I understand that you are busy, thank you for the response and helping me get a grasp on the issue at hand

    Thank you for your help with this. It is much appreciated.

    Sincerely, ccline

    Plugin Author Christian Wach

    (@needle)

    Hi ccline,

    Thanks for your understanding. I’ll notify you here when you can test the code. Or alternatively, keep an eye on the GitHub repo:

    https://github.com/christianwach/civicrm-wp-profile-sync

    Cheers, Christian

    Plugin Author Christian Wach

    (@needle)

    @ccline Until such time as I settle on a robust way of ensuring unique usernames, I have added a new filter to the plugin that allows you to provide a unique username in whichever way suits you.

    Plugin Author Christian Wach

    (@needle)

    Closing due to inactivity. Please open a new issue if the problem persists.

    Cheers, Christian

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘CiviCRM WordPress Member Sync’ is closed to new replies.