Change this in line 278:
<?php get_sidebar( 'buddypress' ); ?>
To this:
<?php /* get_sidebar( 'buddypress' ); */ ?>