fix for Call to undefined function bp_is_active()
-
After an update to buddypress 7.2.1 I had to modify buddypress-groups-extras to fix a critical error that broke the site with this error.
PHP Fatal error: Uncaught Error: Call to undefined function bp_is_active() in wp-content/plugins/buddypress-groups-extras/bpge.php:257
I added lines 257 and 264 below.
function bpge_pre_load() { 256 257 if( function_exists('bp_is_active')){ 258 if ( ! bp_is_active( 'groups' ) ) { 259 // Houston, we have a problem. 260 add_action( 'admin_init', 'bpge_deactivate' ); 261 add_action( 'admin_notices', 'bpge_deactivate_msg_bp' ); 262 return; 263 } 264 }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘fix for Call to undefined function bp_is_active()’ is closed to new replies.