The fix for this is to change line 153 onwards of bp-xprofile-custom-fields-type.php as follows:
if ( ! version_compare( array_pop( $version_bp ), '2.5.0', '>=' ) ) {
$notices[] = get_option('bxcft_notices');
$notices[] = __('BuddyPress Xprofile Custom Fields Type plugin needs <b>BuddyPress 2.5</b>, please install or upgrade BuddyPress.', 'bxcft');
update_option('bxcft_notices', $notices);
delete_option('bxcft_activated');
}
else if ( ! bp_is_active( 'xprofile' ) ) {
$notices[] = get_option('bxcft_notices');
$notices[] = __('BuddyPress Xprofile Custom Fields Type plugin needs Buddypress Xprofile Component. Please enable Xprofile first.', 'bxcft');
update_option('bxcft_notices', $notices);
delete_option('bxcft_activated');
}
Thanks for the code, one contributor has provided solution to the array/string on bp site.
https://buddypress.org/support/topic/user-registration-fails-when-multiple-options-selected-in-buddypress-3-0-0/
With the above workaround, some issues can be resolved but looking forward for BP formal patch for the issue.
This plugin works well with the above changes, thanks to the author.
New version from BuddyDev
https://buddydev.com/plugins/bp-xprofile-custom-field-types/#migrate
works perfect for me
-
This reply was modified 8 years, 5 months ago by
quentro.
Hello, we forked the old version and fixed the vulnerability. https://wordpress.org/plugins/bp-xprofile-custom-fields/
Just to clarify, Our version is available with a few new field types and more stable code(we completely rewrote the plugin instead of forking), on wordperss.org too
https://wordpress.org/plugins/bp-xprofile-custom-field-types/
Thank you.
Just to clarify, Our version is available with a few new field types and more stable code(we completely rewrote the plugin instead of forking)
Will my old settings remain intact after upgrading to this new version @buddydev ?
Thanks
To me it is still throwing the same error message – BuddyPress Xprofile Custom Fields Type plugin needs BuddyPress 2.5, please install or upgrade BuddyPress.
Screenshot – https://i.imgur.com/aLDlNOP.jpg
-
This reply was modified 8 years, 5 months ago by
LavishDhand.
You should delete the old plugin. That line is not coming from our plugin. You most probably have the old plugin still active.
You will need to migrate settings for a few field types(date, min max, decimal etc). Please see https://buddydev.com/plugins/bp-xprofile-custom-field-types/#migrate
Migration of settings is required since the old plugin was storing settings as child options which was technically a bad choice.