Forum Replies Created
-
Thank you for responding to my comment. Actually XYZ is just the placeholder for my database name because I don’t want to disclose it’s name.
Actually the error is trigger by Buddypress function BP_Groups_Group::get( array $args = array() )
which is located “Buddypress\bp-groups\classes\class-bp-groups-group.php”You can find the function here https://www.buddyboss.com/resources/reference/classes/bp_groups_group/get/
Right in the function definition when it reach here
$bp = buddypress(); $sql = array( 'select' => "SELECT DISTINCT g.id", 'from' => "{$bp->groups->table_name} g", 'where' => '', 'orderby' => '', 'pagination' => '', );It triggers error because it can not find table_name. I am not sure why the table_name is not loaded.
We are using Buddyboss theme with Buddypress and Memberium plugins.
Thank You
MushiHere is the detail description of the error
WordPress database error Table ‘my_db.g’ doesn’t exist for query SELECT DISTINCT g.id FROM g ORDER BY g.date_created DESC made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), include(‘/themes/boss-child/functions.php’), is_user_logged_in, wp_get_current_user, _wp_get_current_user, wp_set_current_user, do_action(‘set_current_user’), WP_Hook->do_action, WP_Hook->apply_filters, memberium_core->set_current_user, memberium_core->generateSession, apply_filters(‘memberium_session_filter’), WP_Hook->apply_filters, BP_Groups_for_MemberiumAutoJoin, BP_Groups_Group::get, wpdb->get_col, wpdb->print_error