Unsync xProfile Data on Network
-
Hi There,
I have a large multisite installation that calls on xprofile fields for each user on a particular site in order to return users for a specific item. Due to all the sites having this info, but only needing to pull from users from each specific site, I used the code in the link below to make sure that the profiles aren’t syncing xprofile info between all the sites, problem is, the code supplied doesn’t work, here it is… https://codex.buddypress.org/themes/guides/segregated-x-profile-fields-for-multisite/
I am getting a ton of error messages on the site and it has to do with these 4 lines,
$bp->profile->table_name_data = $wpdb->prefix . ‘bp_xprofile_data’;
$bp->profile->table_name_groups = $wpdb->prefix . ‘bp_xprofile_groups’;
$bp->profile->table_name_fields = $wpdb->prefix . ‘bp_xprofile_fields’;
$bp->profile->table_name_meta = $wpdb->prefix . ‘bp_xprofile_meta’;the error messages I keep getting (the lines correspond with those above) are:
Warning: Creating default object from empty value in /*********/themes/Builder-Everett/functions-child.php on line 187
Warning: Creating default object from empty value in /*********/themes/Builder-Everett/functions-child.php on line 188
Warning: Creating default object from empty value in /*********/themes/Builder-Everett/functions-child.php on line 189
Warning: Creating default object from empty value in /*********/themes/Builder-Everett/functions-child.php on line 190
- The topic ‘Unsync xProfile Data on Network’ is closed to new replies.