Page 1 of 1

Redirect problem

PostPosted: September 15th, 2011, 4:16 pm
by bsowards
I'm using several plugins, but could use your help finding an error.

I've set s2member to open registration, and then using BuddyPress's register page instead of s2member.

That is allowing me to use two plugins from buddydev.com

BuddyPress AutoLogin: http://buddydev.com/buddypress/auto-login-the-user-after-account-activation-on-buddypress-based-social-networks/

Buddypress Facebook Connect: http://buddydev.com/buddypress/introducing-buddypress-facebook-connect-advance-facebook-loginregistration-plugin-for-your-buddypress-based-social-network/comment-page-1/#comment-20465

The purpose of these two plugins is to skip the activation step, and to use facebook for registration.

When s2member is disabled it works fine. But with s2member I get this error:

Fatal error: Call to a member function get_page_permastruct() on a non-object in /wp-includes/link-template.php on line 276

It seems like this might be because s2member relies on the wordpress permalink in some way?

Re: Redirect problem

PostPosted: September 15th, 2011, 11:12 pm
by Bruce C
I believe this can do the autologin without that plugin. Try this post: viewtopic.php?f=4&t=14211&p=29918#p31548

Re: Redirect problem

PostPosted: September 15th, 2011, 11:26 pm
by bsowards
If I understand the hook correctly for that script, that works on the s2member registration form, not the buddypress registration form. thanks for the help though!

Re: Redirect problem

PostPosted: September 26th, 2011, 1:55 am
by Cristián Lávaque
Right, the hack wasn't coded for BuddyPress or Facebook Connect.

s2Member does work with WordPress' URLs in the URI restriction. WP Admin -> s2Member -> Restriction Options -> URI

I don't know if the error is related to that or what. I'll notify Jason about this. Do you get this error when BuddyPress is deactivated? BP just released a major update and there may be things that still need to be fixed to have s2Member work well with it. viewtopic.php?f=4&t=14612

Re: Redirect problem

PostPosted: September 26th, 2011, 2:46 am
by bsowards
We were able to temporarily fix the issue with the following code change:

Just comment this line and put a return statement

s2member/includes/classes/login.redirects.inc.php line 82

// wp_redirect(get_page_link ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["login_welcome_page"]));
return ;

Re: Redirect problem

PostPosted: September 28th, 2011, 3:22 am
by Cristián Lávaque
The latest s2Member release (110927) includes some fixes to work with BuddyPress 1.5. I suggest you update and see if that fixes the problem. :)