How do I make communities plugin work

I am getting this error when I post to communities: Call to undefined function get_active_blog_for_user() in /home/lapnl/public_html/eyemovementactualisation.com/wp-content/plugins/communities/communities-framework.php on line 981