undefined function lib2() in affiliate with membership pro 2

I get this error when a new member registers:

Fatal error: Call to undefined function lib2() in /home/agileapp/public_html/wp-content/plugins/affiliate/affiliateincludes/addons/membership2.php on line 200