Reply To: Can’t get BuddyPress activated
This is an interesting problem, if I understand it correctly.
Your debug backtrace makes it look like the $wp_admin_nav array is somehow getting overloaded by the $wp_admin_bar global.
And it also looks like the bp_setup_admin_bar action is returning a string, instead of the array() that it’s hardcoded to pass in by default. It seems odd that PHP 7.1 would effect this, unless there’s something going on inside of WP_Hook, or we’ve goofed somewhere that isn’t obvious.