Registration page redirects to login – can’t register
-
I’m running WordPress 4.4.2 with BP 2.5.1 and BBpress 2.5.8 with Twenty Twelve theme.
My registration page redirects to a login and I can’t register anymore. When I deactivate Buddypress, it works, when I activate it, it redirects.
A little background… I have installed and uninstalled a few login plugins “New User Approve” “WP User” and a couple others which didn’t work for me. So I finally found Theme My Login, which I installed and liked how it functioned – except it created and ran on secondary pages – (register-2, login-2) so I deleted the first register page and changed the new register page the plugin created permalink to just “register” instead of “register-2”
It didn’t work. So I deleted the register pages, uninstalled Theme My Login, and reinstalled it, hoping that would fix it. It didn’t. And now even though all the pages seem to be set correctly (login, register, logout) I can’t register because of this redirect.
Thank you for any assistance.
-
FYI – I did deactivate all other plugins except Buddypress to test it and it still redirects. It only stops when I deactivate Buddypress.
Actually, it’s now redirecting to the static home page.
I tried logging out and it still redirects me. I tried changing the Buddypress page settings directory Register page to a different non-buddypress page just to see if it was maybe a corrupted page, but that isn’t it either. It still redirects to the login page.
I also checked to see what happens if I go to
http://www.charlottemasoneducation.org/wp-admin/new-user.phpIt says…
“This is somewhat embarrassing, isn’t it?
It seems we can’t find what you’re looking for. Perhaps searching can help.”Can someone maybe tell me which files in Buddypress the login redirect functions would reside in so I could replace those via ftp and see if that works?
Any help would be greatly appreciated.
Strange, now my posts here aren’t showing up. I posted twice, but it’s not showing up. Have I been blacklisted somehow for making too many comments?
Hmmm.. that posted, but not my 3 other posts. Maybe because there was code in it?
I found this codex page and under the section titled “Site URL Redirecting” it gives instructions on deleting a couple lines of code from the wp-login.php file.
I’m wondering if that is the issue. The lines of code don’t match those in my file exactly so I’m hesitant to try.
https://codex.wordpress.org/Login_Trouble
Still waiting to see if someone can help with this. Thank you.
And just to make sure I cover all my bases, here are my answers:
1. Which version of WordPress are you running?
4.4.22. Did you install WordPress as a directory or subdomain install?
Not sure, but I think as a directory.3. If a directory install, is it in root or in a subdirectory?
root I think4. Did you upgrade from a previous version of WordPress? If so, from which version?
No5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
Yes.6. Which version of BP are you running?
2.5.17. Did you upgraded from a previous version of BP? If so, from which version?
Yes, the one before it.8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
Yes, Akismet, BBpress, Buddypress Edit Activity, Buddypress Forum Editor, Buddypress Group Email Subscription, Buddypress Like, Dynamic Widgets (deactivated), Events Made Easy, Events Made Easy Frontend Submit, Hashbuddy, InfiniteWP CLient, rtMedia, Theme My Login, Wanguard, Wordfence Security, WP SMTPI did deactivate all of them except wordpress and the register page worked, I then activated Buddypress and the redirect issue began.
9. Are you using the standard WordPress theme or customized theme?
Twemty Twelve10. Have you modified the core files in any way?
I modified Footer.php on WordPress to edit copyright11. Do you have any custom functions in bp-custom.php?
I don’t know12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
2.5.813. Please provide a list of any errors in your server’s log files.
The error log looks blank. Maybe I’m looking at the wrong thing?14. Which company provides your hosting?
Hostgator15. Is your server running Windows, or if Linux; Apache, nginx or something else?
Basic Trouble Shooting:
I don’t know. Maybe Apache?So, I finally got an answer on a different forum. I’m still not sure why no one here is responding, but I’ll continue the conversation in case someone else has this issue and needs help.
According to Jeff Farthing, author of Theme My Login plugin he said this can be corrected by editing the Register page, making sure the “Custom Fields” box is checked under Screen Options at the top of the page, then enter a new custom field with the name _tml_action and the value register.
I tried that and it gives me an error “Please provide a custom field value.” as if I didn’t. So I searched for a solution and everything seems to say that it has something to do with ajax and the mysql dabatase and that it was patched in MySql version 3.1.23
I checked my database and repaired it through cpanel and it still isn’t working. Still hopeful maybe someone can help… 🙂
I cannot duplicate this problem with Theme My Login.
I’m using the default Theme My Login settings untouched and was able to go to the
register
page and successfully submit the form with no redirections.Make sure for BuddyPress that you selected the BuddyPress “Register” page and not TMLs.
Also disable any plugins that might be interferring with registration like New User Approve, etc.
Make sure for BuddyPress that you selected the BuddyPress “Register” page and not TMLs.
BuddyPress’ Register Page is gone, I deleted it a while ago because TML created a second register page – so I only have the TML register page with TML’s shortcode in there.
What should I do?
When I go to Buddypress > Pages – and click on “View” next to the register page that is set as the Register page, it still redirects me to the login page. Every instance of this I find in the forums seems to be solved by adding custom field to the page name: _tml_action value: register (which doesn’t work for me) or setting the Buddypress Page to the register page (which I have done). I have tried all these things and am ready to give up, I even paid some guy at Fiver to help and none of it has worked. I’m so exasperated with this issue, I’m going to just do a clean reinstall as a last resort and if that doesn’t work go back to Ning again for a couple more years 🙁
BTW, I don’t have New User Approve anymore, it has been deleted along with all other login plugins. I turned off all Plugins except WordPress and Buddypress and this issue still occurs.
Oh, and I do have “Anyone can register” checked off too.
may sound silly, but have you some previous register pages in trash ? If yes, you should delete them permanently. Once done, go to permalinks and register your setting again.
No trash pages, permalinks have already been reset and still having the same issue. No deleted plugin files, all have been deleted. Anyone an Register is checked off, Page is set to correct page in Buddypress Directory.
And thank you for your help, it is greatly appreciated!
I turned off all Plugins except WordPress and Buddypress and this issue still occurs.
Are you sure you disabled all plugins except BuddyPress? If so, check for any rogue code snippets in your theme’s
functions.php
orwp-content/plugins/bp-custom.php
.Once that is done, delete all registration pages you have set up in WordPress. Create a new WordPress page to be used for BuddyPress registration. Just enter a post title and hit “Publish”. Also, ensure all your pages in the “Pages” trash are deleted.
Next, go to “Settings > BuddyPress > Pages” and set the “Register” page to the page you just created.
I wouldn’t know funny if I saw it, but here is the only thing relating to redirects or registering that I could tell from my theme’s function.php file. Does any of it look funny to you?
add_action( ‘template_redirect’, ‘twentytwelve_content_width’ );
/**
* Register postMessage support.
*
* Add postMessage support for site title and description for the Customizer.
*
* @since Twenty Twelve 1.0
*
* @param WP_Customize_Manager $wp_customize Customizer object.
*/
function twentytwelve_customize_register( $wp_customize ) {
$wp_customize->get_setting( ‘blogname’ )->transport = ‘postMessage’;
$wp_customize->get_setting( ‘blogdescription’ )->transport = ‘postMessage’;
$wp_customize->get_setting( ‘header_textcolor’ )->transport = ‘postMessage’;
}
add_action( ‘customize_register’, ‘twentytwelve_customize_register’ );/**
* Enqueue Javascript postMessage handlers for the Customizer.
*
* Binds JS handlers to make the Customizer preview reload changes asynchronously.
*
* @since Twenty Twelve 1.0
*/
function twentytwelve_customize_preview_js() {
wp_enqueue_script( ‘twentytwelve-customizer’, get_template_directory_uri() . ‘/js/theme-customizer.js’, array( ‘customize-preview’ ), ‘20141120’, true );
}
add_action( ‘customize_preview_init’, ‘twentytwelve_customize_preview_js’ );I don’t seem to have a file “bp-custom.php” anywhere in my WP plugin folder.
The issue is definitely somewhere in the Buddypress plugin because when I deactivate it, I am able to access the register page. When I activate it, I can’t. It’s the only plugin I’m seeing that change in.
Also, I’m trying to change my profile email but it is giving me this error:
That email address is already taken.
No changes were made to your account.I think I may have multiple accounts here. Could I merge the two and update the email on this account? I’m not getting the responses in my current email account which is gmail. The hotmail account is mostly a spam account now.
Here is what is in the url when I am logged out and click the “register” link after it takes me to the login page:
I figured out what was causing the redirect – I had “Enable Security” selected in Theme My Login plugin. When I unselected it, it allowed me (when I’m logged out) to access the register page!
I don’t know why when I deactivate the plugin it still causes the issue though.
Either way, it’s a TML issue.
Now I just have to figure out how to exclude the “register” page from the site security.
So glad to at least know the cause!
Here’s a link to my thread in TML support, hoping to find an answer over there. Will close this thread since it isn’t a Buddypress issue.
nobody gave a damn about helping you, did they.
- You must be logged in to reply to this topic.