Provide default tabs order and BPGE group settings for new installs
slaFFik opened this issue · 0 comments
slaFFik commented
https://wordpress.org/support/topic/ongoing-support-of-the-plugin/
There’s an issue with the current version which means it no longer works. I can’t claim to be an expert but I’ve managed to get it going by inserting a couple of checks on the saved settings:
buddypress-groups-extras/core/loader.php
insert below line 115:
115 - $order = groups_get_groupmeta( $bp->groups->current_group->id, 'bpge_nav_order' );
116 - if ( !$order ) $order = array();
insert below line 1078:
1078 - $old_data = groups_get_groupmeta( $bp->groups->current_group->id, 'bpge' );
new line 1079 - if ( !$old_data || $old_data == '1' ) $old_data = array();
The check for $old_data == 1 is to fix any group settings that failed with the error this fixes.