Support » Plugin: Import and export users and customers » BP_Groups_Member not found

  • Plugin Versions:
    bbPress 2.6.6
    Import and export users and customers 1.16.4.1

    [21-Dec-2020 15:59:25 UTC] PHP Fatal error: Uncaught Error: Class ‘BP_Groups_Member’ not found in /home/acsdm/public_html/calcasa-elearning/leap/wp-content/plugins/import-users-from-csv-with-meta/addons/buddypress.php:116
    Stack trace:
    #0 /home/acsdm/public_html/calcasa-elearning/leap/wp-content/plugins/import-users-from-csv-with-meta/addons/buddypress.php(140): ACUI_Buddypress->get_groups(’24’)
    #1 /home/acsdm/public_html/calcasa-elearning/leap/wp-includes/class-wp-hook.php(289): ACUI_Buddypress->export_data(Array, ’24’, ‘Y-m-d H:i:s’)
    #2 /home/acsdm/public_html/calcasa-elearning/leap/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
    #3 /home/acsdm/public_html/calcasa-elearning/leap/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php(233): apply_filters(‘acui_export_dat…’, Array, ’24’, ‘Y-m-d H:i:s’, Array, false)
    #4 /home/acsdm/public_html/calcasa-elearning/leap/wp-includes/class-wp-hook.php(287): ACUI_Exporter->export_users_csv(”)
    #5 /home/acsdm/public_html/calcasa-elearning/leap/wp-includes/class-wp-hook.php(311): in /home/acsdm/public_html/calcasa-elearning/leap/wp-content/plugins/import-users-from-csv-with-meta/addons/buddypress.php on line 116
    [21-Dec-2020 16:01:35 UTC] PHP Warning: date() expects parameter 2 to be integer, string given in /home/acsdm/public_html/calcasa-elearning/leap/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php on line 154
    [21-Dec-2020 16:01:35 UTC] PHP Notice: get_user_meta( $user_id, ‘last_activity’ ) was called incorrectly. User last_activity data is no longer stored in usermeta. Use bp_get_user_last_activity() instead. Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /home/acsdm/public_html/calcasa-elearning/leap/wp-includes/functions.php on line 5171
    [21-Dec-2020 16:01:35 UTC] PHP Notice: Undefined variable: datetime_format in /home/acsdm/public_html/calcasa-elearning/leap/wp-content/plugins/import-users-from-csv-with-meta/addons/buddypress.php on line 137
    [21-Dec-2020 16:01:35 UTC] PHP Notice: Undefined variable: datetime_format in /home/acsdm/public_html/calcasa-elearning/leap/wp-content/plugins/import-users-from-csv-with-meta/addons/buddypress.php on line 137
    [21-Dec-2020 16:01:35 UTC] PHP Notice: Undefined variable: datetime_format in /home/acsdm/public_html/calcasa-elearning/leap/wp-content/plugins/import-users-from-csv-with-meta/addons/buddypress.php on line 137
    [21-Dec-2020 16:01:35 UTC] PHP Fatal error: Uncaught Error: Class ‘BP_Groups_Member’ not found in /home/acsdm/public_html/calcasa-elearning/leap/wp-content/plugins/import-users-from-csv-with-meta/addons/buddypress.php:116
    Stack trace:
    #0 /home/acsdm/public_html/calcasa-elearning/leap/wp-content/plugins/import-users-from-csv-with-meta/addons/buddypress.php(140): ACUI_Buddypress->get_groups(’19’)
    #1 /home/acsdm/public_html/calcasa-elearning/leap/wp-includes/class-wp-hook.php(289): ACUI_Buddypress->export_data(Array, ’19’, ‘Y-m-d H:i:s’)
    #2 /home/acsdm/public_html/calcasa-elearning/leap/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
    #3 /home/acsdm/public_html/calcasa-elearning/leap/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php(233): apply_filters(‘acui_export_dat…’, Array, ’19’, ‘Y-m-d H:i:s’, Array, false)
    #4 /home/acsdm/public_html/calcasa-elearning/leap/wp-includes/class-wp-hook.php(287): ACUI_Exporter->export_users_csv(”)
    #5 /home/acsdm/public_html/calcasa-elearning/leap/wp-includes/class-wp-hook.php(311): in /home/acsdm/public_html/calcasa-elearning/leap/wp-content/plugins/import-users-from-csv-with-meta/addons/buddypress.php on line 116

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Javier Carazo

    (@carazo)

    Please update to the latest version of our plugin and tell us if it fails again.

    Thread Starter pzheng2016

    (@pzheng2016)

    @carazo I was testing with the latest version and it failed. That’s why I reverted to the older version, but it’s not working as well.

    The error is same.

    Thread Starter pzheng2016

    (@pzheng2016)

    @carazo One thing to note: my wordpress version is 5.4.4 and would not like to update to the latest version at the moment.
    Could you help me find the best suitable version of your plugin for wordpress 5.4.4?

    Thanks.

    Thread Starter pzheng2016

    (@pzheng2016)

    @carazo I have modified the file addon/buddypress.php to check if the class BP_Groups_Member exists.

    	function get_groups( $user_id ){
    	    if (class_exists('BP_Groups_Member')) {
    		    $groups = BP_Groups_Member::get_group_ids( $user_id );
    	    } else {
    	        $groups = [];
    	    }
    		return implode( ",", $groups['groups'] );
    	}
    Plugin Author Javier Carazo

    (@carazo)

    Good morning,

    I have just included this one:

    function get_groups( $user_id ){
    	if( !class_exists( "BP_Groups_Member" ) ){
    		require_once( WP_PLUGIN_DIR . "/buddypress/bp-groups/classes/class-bp-groups-member.php" );
    	}
    
    	$groups = BP_Groups_Member::get_group_ids( $user_id );
    	return implode( ",", $groups['groups'] );
    }

    In my working version. Just to be sure, are you using BuddyPress or BuddyBoss?

    Thread Starter pzheng2016

    (@pzheng2016)

    Thanks, I’m using BudyPress.

    Plugin Author Javier Carazo

    (@carazo)

    I have just made a fix.

    Update and tell me if it works for you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘BP_Groups_Member not found’ is closed to new replies.