PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Redirect problem

s2Member Plugin. A Membership plugin for WordPress®.

Redirect problem

Postby bsowards » September 15th, 2011, 4:16 pm

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?
User avatar
bsowards
Experienced User
Experienced User
 
Posts: 25
Joined: August 24, 2011

Re: Redirect problem

Postby Bruce C » September 15th, 2011, 11:12 pm

I believe this can do the autologin without that plugin. Try this post: viewtopic.php?f=4&t=14211&p=29918#p31548
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Redirect problem

Postby bsowards » September 15th, 2011, 11:26 pm

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!
User avatar
bsowards
Experienced User
Experienced User
 
Posts: 25
Joined: August 24, 2011

Re: Redirect problem

Postby Cristián Lávaque » September 26th, 2011, 1:55 am

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
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Redirect problem

Postby bsowards » September 26th, 2011, 2:46 am

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 ;
User avatar
bsowards
Experienced User
Experienced User
 
Posts: 25
Joined: August 24, 2011

Re: Redirect problem

Postby Cristián Lávaque » September 28th, 2011, 3:22 am

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. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron