Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • metaverso
    Participant

    @metaverso

    my fix:

    Fatal error: Call to undefined function bp_get_current_group_id() in /wp-content/plugins/buddypress/bp-groups/classes/class-bp-group-extension.php on line 488

    [ soluction ]

    public static function get_group_id() {
    
    		
    	if ( defined( 'WP_NETWORK_ADMIN' ) && bp_is_active('groups')) {   // -----------fix add line 1 
    	echo get_called_class();// -----------fix add line 2                     
    
    	
    		// Usually this will work.
    		$group_id = bp_get_current_group_id();
    
    		// On the admin, get the group id out of the $_GET params.
    		if ( empty( $group_id ) && is_admin() && ( isset( $_GET['page'] ) && ( 'bp-groups' === $_GET['page'] ) ) && ! empty( $_GET['gid'] ) ) {
    			$group_id = (int) $_GET['gid'];
    		}
    
    		// This fallback will only be hit when the create step is very
    		// early.
    		if ( empty( $group_id ) && bp_get_new_group_id() ) {
    			$group_id = bp_get_new_group_id();
    		}
    
    		// On some setups, the group id has to be fetched out of the
    		// $_POST array
    		// @todo Figure out why this is happening during group creation.
    		if ( empty( $group_id ) && isset( $_POST['group_id'] ) ) {
    			$group_id = (int) $_POST['group_id'];
    		}
    
    		return $group_id;
    		}// -----------fix add line 3
    	}

    metaverso
    Participant

    @metaverso

    [ SOLUCTION ]
    error buddypress /wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-group.php on line 988

    update 988 line:
    if ( ! empty( $r['update_meta_cache'] ) ) {
    to:
    if ( ! empty( $r['update_meta_cache'] && bp_is_active( 'groups' )) ) {

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar