Membership gives 500 error while creating member

When I try to add a member even from the dashboard, it redirects to 500 error. Error log shows;

PHP Fatal error: Using $this when not in object context in /nas/content/live/xxxx/wp-content/plugins/membership/app/addon/mailchimp/class-ms-addon-mailchimp.php on line 439