Page 1 of 1

Registration Error

PostPosted: June 3rd, 2011, 5:47 pm
by heather
We are using WP 3.0.5 with BuddyPress 1.2.7 and s2Member 3.5.8

Members on our site are getting this error from s2Member after login: Call to undefined function is_blog_admin() from /s2member/includes/classes/utils-conds.inc.php on line 37

- The registration process completes and the member is created, but gives the error I mentioned.

- Confirmation emails with generated passwords are not arriving. I have tried allowing passwords to be created by user, but it does not resolve.

- Users have the impression the login has failed.

Can you advise on how I can best work through this?

Thank you so much! ~h.

Re: Registration Error

PostPosted: June 3rd, 2011, 6:09 pm
by Cristián Lávaque
Hello Heather.

Do you have multisite network or is it a single blog?

Re: Registration Error

PostPosted: June 3rd, 2011, 6:14 pm
by heather
Multisite Network - closed to members

Re: Registration Error

PostPosted: June 3rd, 2011, 6:20 pm
by Cristián Lávaque
Thanks.

I'll let Jason (the Lead Developer) take this one, I don't know multisite issues as he does. I sent him an email with a link to this thread. :)

Re: Registration Error

PostPosted: June 3rd, 2011, 6:23 pm
by heather
Ok. Thanks for the quick response. :)

Re: Registration Error

PostPosted: June 3rd, 2011, 10:27 pm
by Jason Caldwell
Thanks for reporting this important issue.

The section of code that you're referring to, is this:
Code: Select all
public static function is_blog_admin ()
    {
        if (version_compare (get_bloginfo ("version"), "3.1-RC", ">="))
            return is_blog_admin ();
        /**/
        return is_admin ();
    } 
* This routine is designed to support backward compatibility with WordPress 3.0.x. On your installation though, it sounds like your version of WordPress is reporting itself incorrectly. The function call "is_blog_admin()" should not be fired unless you have WordPress 3.1-RC or higher installed.

Two possible solutions for you.
1. Verify that your installation of WordPress is correctly reporting its version at 3.0.5.
2. Or, upgrade to the latest version of WordPress, where the "is_blog_admin()" function is available.

Re: Registration Error

PostPosted: June 3rd, 2011, 11:05 pm
by heather
Thank you so much for your response. I will look into compatibility with our current plugins for the inevitable upgrade. If possible, this seems to be the most practical long term solution.

Wonderful support! Thanks again. :)

Re: Registration Error

PostPosted: June 6th, 2011, 8:06 pm
by heather
After our discussion, I have updated to WP 3.1.3, BP 1.2.8 and s2Member Version 110605. Everything seems to be working properly, but I am unable to check our previous error or reach the s2Member registration form.

- All registration links push to /registration, which is the BP registration form.
- Also, the only s2Member options available on the dashboard are Multisite (config) and s2Member Info.

Any ideas on what could be causing this?

Re: Registration Error

PostPosted: June 6th, 2011, 9:02 pm
by Jason Caldwell
- All registration links push to /registration, which is the BP registration form.

Yes, this is the correct behavior. BuddyPress redirects all registration requests to /register/. If you don't like that, you could deactivate BuddyPress I suppose. Also, starting with s2Member v110605+, it is now possible to integrate s2Member's Custom Registration Fields into the BuddyPress registration system too, making these two software applications work together better. Please see this thread: viewtopic.php?f=4&t=6505&p=20121#p16089

Also, please note that s2Member Pro Forms are NOT subjected to this BuddyPress /register/ system. s2Member Pro Forms make it easy to build your own combination registration/checkout forms, bypassing the BuddyPress registration system all together, if you prefer.

- Also, the only s2Member options available on the dashboard are Multisite (config) and s2Member Info.
It sounds like you're in the new "Network Admin Panel".
Go up to the right hand side of your Dashbaord and choose "Site Admin".

Re: Registration Error

PostPosted: June 7th, 2011, 4:51 am
by heather
I see! Thank you for the clarity! I am excited to explore the new features.

Again, wonderful support and I am grateful for your help.