BP Registration Options plugin issue

We are using BP registration options plugin to manually approve all new accounts (found that most effective to control spam/bots).


The problem is that this plugin has not been upgraded recently and doesn't work with multisite either (which we have). Thankfully someone posted a fix for that here:


And now the plugin does work but is giving one issue:

When the user now clicks on the activation link in the email, it gets this error

Catchable fatal error: Object of class WP_Error could not be converted to string in /home/betahpat/public_html/wp-content/plugins/bp-registration-options/bp-registration-options.php on line 1282…….

Can someone here look at the code of the plugin and see what's wrong with it and suggest a way to fix this error.

Thank you.