christianwach / bp-groups-civicrm-sync

BP Groups CiviCRM Sync is a port of the Drupal civicrm_og_sync module for WordPress that enables synchronisation between BuddyPress Groups and CiviCRM.
https://wordpress.org/plugins/bp-groups-civicrm-sync/
GNU General Public License v2.0
2 stars 1 forks source link

Incompatibility with CiviCRM multisite automatic group assignement #4

Open jbonlinea opened 4 years ago

jbonlinea commented 4 years ago

Hi

I'm not sure it relly matters for the plug-in and its usage per se, but it might good to know for poserity and help others encountering the same issue.

It apears that when CiviCRM > Administer > System Settings > Multisite settings is activated, AND that a group is selected, there are several bug on user registration with BP registration page : not one but several wp users and several Civi Contact are created (2, 3 or 4 depending what other plug-in are active - CiviCRM WordPress Profile Sync, BP xProfile WordPress User Sync, etc.).

Conversely, if no group are selected in CiviCRM > Administer > System Settings > Multisite settings, everything is fine. CiviCRM Admin utilities > domain returns that The current domain group for this site is: "Could not find a Domain Group ID." (ID: 0)

If one create a multisite domain with CiviCRM multisite extention and wp-cli command MultisiteDomain.create, the organisation is indeed tied to the group it is supposed to in table civicrm_group_organisation. Yet CAU keep returning The current domain group for this site is: "Could not find a Domain Group ID." (ID: 0)

If one select a domain group in CAU, the value seems properly stored as CAU returns "The current domain group for this site is: "blabla" (ID: 4)", but again the newly created users are not added to the group.

At first look, the auto-asignement of a newly registered user to the group linked to the curent site/organisation is a handy functionality, but there might other to acheive that, for instance with a custom form.

Cheers !

christianwach commented 4 years ago

I have not tested this plugin with CiviCRM in "multisite" mode, so thanks for the report @jbonlinea.