Hi, does anyone have a clue how to fix the following error.
Warning: Creating default object from empty value in C:\XAMPP\htdocs\hidden\wp-content\plugins\bp-group-hierarchy\bp-group-hierarchy-actions.php on line 22
It's caused by this piece of code.
function bp_group_hierarchy_setup_globals()
{
global $bp, $wpdb;
/* For internal identification */
$bp->group_hierarchy->id = 'group_hierarchy'; // line 22
$bp->group_hierarchy->table_name = $wpdb->base_prefix . 'bp_group_hierarchy';
$bp->group_hierarchy->slug = BP_GROUP_HIERARCHY_SLUG;
/* Register this in the active components array */
$bp->active_components[$bp->group_hierarchy->slug] = $bp->group_hierarchy->id;
do_action('bp_group_hierarchy_globals_loaded');
}
That is from BuddyPress. I have nothing to do with that code.