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™
bitofgrace wrote:But when a user purchases using s2 and is assigned to s2Level1 through that process they are unable to get through the registration process. It throws them to the home page - and then re-clicking on the email says the link is expired.
if (! current_user_can("read_apparatus")) {
wp_redirect( home_url('/sign-up/') );
exit();
}
if (! current_user_can("read_apparatus")) {
wp_redirect( home_url('/sign-up/') );
exit();
}
if (is_singular() /* i.e. a Single Post/Page, and NOT /wp-login.php. */ && ! current_user_can("read_apparatus")) {
wp_redirect( home_url('/sign-up/') );
exit();
}
Jason Caldwell wrote:Here are some things you might take a look for:
...
2. Do you have any calls like this that might be loaded on the /wp-login.php page? ... Perhaps change calls like this, to something like this instead:*
- Code: Select all
if (is_singular() /* i.e. a Single Post/Page, and NOT /wp-login.php. */ && ! current_user_can("read_apparatus")) {
wp_redirect( home_url('/sign-up/') );
exit();
}
...
4. Be sure that s2Member is properly configured with a Login Welcome Page. If you don't have a Login Welcome Page configured, s2Member will redirect Users/Members to your home page by default. For debugging, see: /s2member/includes/classes/login-redirects.inc.php.
(s2Member/s2Member Pro) Bug fix. A bug related to the init() Hook firing an early call to c_ws_plugin__s2member_systematics::is_wp_systematic_use_page() was identified. Fixed in this release. One symptom of this bug was for Users/Members to have trouble accessing a BuddyPress registration form after having paid for Membership, under the right scenario ( could also have caused trouble with /wp-login.php ).
Return to Common Questions/Problems/Tips
Users browsing this forum: No registered users and 2 guests