I recently started seeing a similar problem. Existing members can log in just fine. New members can register and click the validation link in the email, and all seems fine. The account appears the admin All Users list.
However, attempting to log in redirects the new user to the home page, with no error message, and no user logged in. In contrast, logging in with *bad* credentials goes to the "failed login" page, so I'm fairly sure the account is being created OK.
Disabling s2member restores proper functionality. The user can then log in.
Enabling s2member, functionality continues...and now the new user can still successfully log in and log out.
If I delete that user, and register a new user with the same name, it is as before...I cannot log in while s2member is still running. Stopping and restarting s2member allows the new user to log in.
Creating another user with a unique username does the same thing.
...
I've searched the support forum without luck. This is a difficult problem to describe in a search box! The closest thing I found is this thread and hoped the s2member login
widget would fix me up. I added the s2member login
widget, but no joy. The behaviors are broken just as before.
...
I just upgraded s2member and s2member Pro to the latest version (v111017) with no improvement. I am running WP 3.2.1 and BuddyPress 1.2.9.
I have gone through every tab under s2member's Restriction Options, and removed the few entries I had there during testing. I believe that my only restrictions are implemented in a custom post type template (single-lab.php):
- Code: Select all
if (! current_user_can("read_apparatus")) {
wp_redirect( home_url('/sign-up/') );
exit();
}
...
Let me be clear...I doubt seriously this is not a bug in s2member. I'm sure I've fouled something up, but have run out of ideas in troubleshooting it. If WP or s2m have any logs that might help, I haven't found them yet.
This is fairly new behavior. It was working a few weeks ago. In the meantime, I have worked sporadically on refining custom capabilities related to viewing lab pages, between being pulled off on other projects for a week at a time. Those changes all run after a user has logged in, so I don't *think* it is related. I've disabled the shortcode that triggers that action regardless, with no improvement.
I've finally entirely disabled the plugin I'm creating (including that shortcode and other tweaks), with no change.
At this point, I've got the system pared down very close to stock. I tried disabling BuddyPress, but then the site broke completely so I reenabled it. FWIW, we are not currently using any of BP's features, but plan to in the future, so are building compatible templates with it turned on.
...
SOOoooo....suggestions of things I can adjust or test? Any diagnostics or logs that might point me in the right direction? I'm a 15-year web programmer veteran, but am brand new at WP.
I acknowlege this is probably not your problem, but I offer huge thanks in advance for any help you can offer.
-dave