Search Results for 'Invalid activation key'
-
AuthorSearch Results
-
January 27, 2021 at 11:43 pm #316910
Topic: Activation key Invalid
in forum How-to & Troubleshootingphronesisfrigg
ParticipantSeems a common issue. Site is https://thepamphlet.net/, WP version 5.6, BP version 7.1.0. Users can register, will get email to activate, click link in email and then get error message saying activation invalid. Activation by copy/pasting key into field seems to work though. How do we fix?
July 20, 2020 at 9:38 am #312923anshuak47
ParticipantI have this site: https://prodicallearning.com/
When a user registers this site he gets an activation email with activation URL and key.
But when the user enters the key it shows Error: “COULD NOT CREATE USER”.
And when I try to register again with the same email it shows “Email Already exists”.
When I try to login by the same credentials it shows ” There is a problem with the username and password”.
When I again visit the activation page it shows user already activated. But the users are not listed anywhere.
Current WordPress version: 5.4.2
Buddypress version: 2.6.5
Theme using : WPLMS by Mr.VibeI don’t know what is happening with the site. I am really stuck at this. A quick response will be appreciated.
Have a good day.July 20, 2019 at 8:51 am #307046Topic: invalid activation key error
in forum How-to & Troubleshootingjohnyumnam
ParticipantI am getting
1) a “504 Gateway Time-out” error on my site while trying to register a new user, but i do get the email to activate the account.
2) when i click on the activation link that directs me to the activation link page an “invalid activation key” or “504 Gateway Time-out” error is displayed
My WP version is 5.2.2 and my buddypress version is 4.3.0 and the url of my site is http://www.enlightopedia.net
Please help
July 18, 2018 at 1:09 am #275266In reply to: in Activation link the variable “key” is missing
pauapau
Participantthank you r-a-y:)
buddpress adds the invailid-key error at bp-members-function.php:1856
so why it is “wrong”(if ! $wpdb->query…) that $wpdb->query can update the value?
i dont undestand it ๐// Change the user's status so they become active. if ( ! $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET user_status = 0 WHERE ID = %d", $user_id ) ) ) { return new WP_Error( 'invalid_key', __( 'Invalid activation key.', 'buddypress' ) ); }April 10, 2018 at 1:16 pm #271958In reply to: New Users Invalid Activation Code Error
T
ParticipantHi @bntbrl,
Did you get get this resolved? I’m stuck in a similar situation. Users get the activation email, but it directs them to “invalid activation key”… they cannot log in.
The key is not in my database either.
So stuck, and no way to contact @buddypress
๐
April 10, 2018 at 1:11 pm #271957In reply to: Invalid activation key
T
ParticipantHi @rsnipun, did this ever get resolved for you? I’m in the same boat where users get the invalid activation key, and it’s empty in my database too. I wish someone from @buddypress could help! I can’t find a solution anywhere.
๐
July 19, 2017 at 12:13 am #267092In reply to: Invalid Activation Key
kcscience
ParticipantI am having the same problem with my web site, and I have figured out why the problem happens, and why the problem is intermittent…
Here is the problem: a user registers for a BuddyPress account, receives the activation email, follows the link in the activation email, and gets the “Invalid activation key” error. Yet, their account really *is* activated, and they can log in and use their account. A different user does exactly the same thing, and everything works great for them – they get the “Account Successfully Activated” page.
*Some* users have this problem, most don’t. The ones that do? They seem to have “Blue Coat K-9 Web Protection” software installed on their computers. This is software that is generally installed by parents to keep children from viewing inappropriate content on the internet. When the user follows the “activation” link, K-9 (running on the user’s computer) sends the URL to Blue Coat’s servers, which hit the URL (causing the account activation to succeed). Blue Coat’s servers analyse the “account activation succeeded” response, decides that web page is “kid friendly”, and then tells the user’s computer that that URL is “safe”. The user’s browser is then allowed to hit the URL, but, since that BuddyPress account has already been activated (by Blue Coat’s servers), the user sees the “Invalid activation key” error message, because we tried to activate the BuddyPress account twice.
Assuming that Blue Coat’s K-9 software is not the only “internet safety” software that acts in this way, it might be a good idea to change the BuddyPress “account activation” system to display an “activation succeeded” message when a user (or their “internet safety” software) tries to activate a BuddyPress account more than once.
Here are more details, in case if anybody is interested…
I instrumented my site’s “index.php” and my site’s “public_html\wp-content\plugins\buddypress\bp-templates\bp-legacy\buddypress\members\activate.php” with code that logs tons of stuff, including the IP address of the user. This led to the following discovery…
When a non-K-9 user follows the “activation” link, “index.php” gets hit (from their computer’s IP address), which invokes the fore-mentioned “activate.php”, which activates the account and emits the “activation successful” web page, and all is well. One web request happened, as demonstrated by “$_SERVER[‘UNIQUE_ID’]”.
When a K-9 user follows the “activation” URL, however, a MUCH different situation occurs, which involves four separate web requests. The first two requests come from an IP address that is registered to Blue Coat Systems / Symantec Corporation, the makers of the K-9 Internet Protection software. The second two requests come from the user’s computer…
* Web request #1 – Blue Coat’s computer hits “index.php” with the activation URL’s ending slash missing.
* Web request #2 – Blue Coat’s computer hits “index.php” again, with the correct activation URL this time. This invokes lots of PHP code (on my server), which eventually results in “activate.php” running and the account activation succeeding. The reply (the “account activation succeeded” web page) is delivered to Blue Coat’s servers, who analyses it and decide that the web page is “kid friendly”, so it tells K-9 (running on the user’s computer) that it’s OK to show that page.
* Web request #3 – The user’s computer finally hits “index.php”, in order to activate the account.
* Web request #4 – The user’s computer hits “index.php” again, with the registration key removed from the end of the URL this time. This invokes lots of misc PHP code, which eventually results in “activate.php” running and failing this time, because the activation has already happened (back in web request #2, which Blue Coat made, in order to determine if that web page is “kid friendly” or not).
I have no idea why the user’s computer (in #3 and #4) make two requests instead of one. However, even if it made just one, it would still show the error message, because that’s the second time the BuddyPress account was activated.
– kcscience
June 22, 2017 at 7:40 pm #266628Topic: Invalid Activation Key
in forum How-to & Troubleshootingoise73
ParticipantHi there,
We have run into one heck of a problem. Our site is about to launch, but when test users sign up and click on the link they receive in an email to activate their account, they get a โInvalid Activation Keyโ message.
We are using BuddyPress version 2.8.2 and WordPress 4.8. This is a directory site. We use GeoDirectory.
This is a new issue. The sign-up and activation process used to work perfectly!
What I have done thus far is deactivate all the plugins but BuddyPress- no joy. Then I deactivated and deleted BuddyPress and reinstalled it. That did not work either. Then I switched the theme to 2016 – same issue. Here is a screenshot of that:

Our website is http://debsvillage.com/
Help! Thank you!
September 5, 2016 at 4:46 pm #258410In reply to: How to Change the From Email for Activation
steigw
ParticipantIt’s a staging site that doesn’t have public access, but I can put the code and info in here. Here is the complete code of the functions.php in the child theme. maybe I just put it all together wrong.
<?php function nisarg_enqueue_styles() { $parent_style = 'nisarg-style'; wp_enqueue_style( 'bootstrap', get_template_directory_uri().'/css/bootstrap.css' ); wp_enqueue_style( 'font-awesome', get_template_directory_uri().'/font-awesome/css/font-awesome.min.css' ); wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'nisarg-child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ) ); } add_action( 'wp_enqueue_scripts', 'nisarg_enqueue_styles' ); ?> <?php function custom_wp_mail_from( $email ) { $handle = โaccountsโ; $find = 'http://'; $replace = ''; $link = get_bloginfo( 'url' ); $domain = str_replace( $find, $replace, $link ); return $handle . '@' . $domain ; } add_filter( 'wp_mail_from', 'custom_wp_mail_from' ); ?>The email link is:http://mydomain.com/activate/JA0BvkK1Q0DND10SYegdOtkTMemhGUF0/
When I click on it immediately, I get all this:
Fatal error: Uncaught exception ‘phpmailerException’ with message ‘Invalid address: โaccountsโ@mydomain.com’ in /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-includes/class-phpmailer.php:946 Stack trace: #0 /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-includes/pluggable.php(352): PHPMailer->setFrom(‘\xE2\x80\x98accounts\xE2\x80\x99@…’, ‘WordPress’) #1 /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-includes/pluggable.php(1726): wp_mail(‘webmaster@arlin…’, ‘[My Dev Sit…’, ‘New user regist…’) #2 /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-content/plugins/buddypress/bp-members/bp-members-functions.php(2031): wp_new_user_notification(18) #3 /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-content/plugins/buddypress/bp-members/bp-members-screens.php(364): bp_core_activate_signup(‘JA0BvkK1Q0DND10…’) #4 [internal function]: bp_core_screen_activation(”) #5 /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-includes/plugin.php(524): cal in /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-includes/class-phpmailer.php on line 946
If I wait a while, then I get the normal webpage and it says “invalid activation key”. I don’t understand the significance of an immediate click on the link in the email vs. waiting a few more seconds, but it definitely matters.
June 25, 2015 at 11:22 pm #241118In reply to: Activation link doesn’t work
danbp
Participanthi @nnc24,
you have to read and to debug. As first test, activate 2015 theme and deactivate any plugin but BP. Put debug mode on true in wp-config during your test.
Some related topics:
https://buddypress.org/support/topic/user-activation-issue/
https://buddypress.org/support/topic/new-user-registration-problem-invalid-activation-key/May 24, 2015 at 8:48 am #239628In reply to: [Resolved] User Activation Issue
proteas
ParticipantI see you have registered.
Some info from the “signups” table for your account.
“Registered” column: 2015-05-24 08:30:56
“Activated” column: 2015-05-24 08:30:59
“Active” column: 1
“Activation_Key” column: –The activation key–And you can now login despite the “Invalid Activation Key” you saw when you clicked the email link.
This is excactly whats happening with all emails I’ve tried so far except two.
If I register with info@myotherdomain.com, before I click the email link then the “signups” table is as:
“Registered” column: 2015-05-23 21:17:24
“Activated” column: 0000-00-00 00:00:00
“Active” column: 0
“Activation_Key” column: –The activation key–and is only activated after I click on the email link, which is what we want.
Could there be a problem with my email setup on the server level? Should I talk to my hosting company?
April 12, 2015 at 11:52 pm #237792In reply to: Activation Key not working
modemlooper
Moderatoris this site already active with users? You might need to reinstall everything fresh.
Read this thread, its probably the same issue, has some suggestions. https://buddypress.org/support/topic/new-user-registration-problem-invalid-activation-key/
March 26, 2015 at 11:16 pm #236704In reply to: Double entries
bluedawg
ParticipantI was getting a lot of those entries before I got email registration activation working. turns out there was a conflict with another plugin and that’s why I was getting the invalid activation key error. Since I got that working I have not gotten any more spam signups but I’ll keep an eye out. I only have the live site – no local install.
I have another question about formatting profile pages – Mine look terrible. Maybe I did something along the way to break them. I have been working feverishly at this for days but I will start another thread for that new topic ๐
March 22, 2015 at 7:49 pm #236397In reply to: Test Registation error
danbp
ParticipantClear your browser cache. This happens sometimes when you register, then try to login as new user during the same session. Can also be due to theme or plugin settings.
You can also read some older topics about this:
https://buddypress.org/support/search/Invalid+activation+key/August 28, 2014 at 6:17 pm #188669In reply to: User Registration Issues
dylss505
ParticipantI realize now that the Activation page for BuddyPress was not active. I have added this page. Now the authentication goes to the registering user, but it says authentication key invalid.
Is this a bug? Has anyone fixed this on their site?
August 28, 2014 at 5:46 pm #188664In reply to: Invalid Activation Key
dylss505
ParticipantEven though the activation key is said to be invalid when clicking the authentication email, the new user is still created.
After creating a test account I see the authentication key error. However, if I click sign in from this point the new user account works. I was able to login.
Any thoughts?
August 9, 2014 at 5:27 am #186344In reply to: Activate your Account
hkcharlie
ParticipantSorry, that is not what you would expect of a user.
What I did was log out, shut down my browser session, ran CCleaner to clear cache etc then went about registering for my website like a new user would.
Filled in the registration page, got a message to check my email, so went to my email and clicked the link, this opened another tab which read “Invalid Activation Key”.
1) You would not expect your new users to close their session before going to their email for the activation key.
2) On the page that says “Invalid Activation Key” there is a box that says “Please provide valid activation key”. Nowhere on the email that is created does it say “this is your activation key” you need to be a little tech literate and cut it out of the URL that is posted on there as the link.
I can’t expect new members to be doing either of these.
How can I change this ?
August 3, 2014 at 9:58 pm #185894growingforward
ParticipantI’m having the exact same problem with new use registration. They get the confirmation email, but when they click on the link it goes back to my home page with the:
‘invalid activation key’ message and a box to enter a number.
Seems like there hasn’t been a resolution to this so far, can anyone help?!
July 9, 2014 at 6:47 am #184916malathis
ParticipantHi,
I have checked about this issue in the forum. Many questions raised about the “Invalid Activation key” issue, but nobody reply to solve this.
No one give best solution to solve this problem.
Please anyone help me to fix this issue,because i have tried with last one week.
I have another one question below
After sending the confirmation link to email, if i “Sign In” with created user details it is not connected.It shows “ERROR: Invalid username. Lost your password?”
So i have used my email id in Forget password field. But is shows “ERROR: There is no user registered with that email address.”
What is the issue? Please anyone help me to solve.
Thanks..
July 2, 2014 at 8:08 am #184669bp-help
Participant@malathis
You will probably find after clicking the activation email that you can actually log in to the site if you want to try it even though the invalid activation key message is displayed. This issue has been brought up many times on the forums so do a search of how others resolved it.May 31, 2014 at 3:09 am #183508bummedbride
ParticipantHello everyone! I still can not find a resolution to this “invalid activation key” – has anyone had any success? My Buddypress website works fine for most but there are still several of my members that are experiencing this issue?
Has anyone found any fixes?
Thanks!
April 23, 2014 at 10:05 pm #181950OrlandoDS
ParticipantHey,
I’m had the same problem and resolved the issue;
Cause of the problem
Wordpress database error Unknown column ‘signup_id’
column: signup_id missing from database table wp_signupsSolution
create primary key column titled ‘signup_id’ by entering the following sql statement at the mysql prompt:
ALTER TABLE 'database_name'.'wp_signups' ADD COLUMN 'signup_id' INT NOT NULL AUTO_INCREMENT;Problem History
Error: Invalid Activation key
Also, manage signups view is empty, but I have attempted to register multiple userssystem
- LAMPP
- WordPress Version 3.6.1
Unsuccessful Resolutions:
- activate 2012 theme
- deactivated all plugins
- deleted + reinstalled buddypress
Known Database Issues:
- the field user_activation_key is empty in table wp_users
- the field activation_key is NOT empty in table wp_signups
- column signup_id is missing from table wp_signups
- there is no PK or FK column for table wp_signups
apache error log
Found some useful output from apache log file, which is what led my solution:
[Wed Apr 23 20:58:19 2014] [error] [client xx.xx.xxx.xxx] WordPress database error Unknown column 'signup_id' in 'order clause' for query SELECT * FROM wp_signups WHERE active = 0 AND activation_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx' ORDER BY signup_id DESC LIMIT 0, 1 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), call_user_func_array, bp_template_redirect, do_action('bp_template_redirect'), call_user_func_array, bp_screens, do_action('bp_screens'), call_user_func_array, bp_core_screen_activation, bp_core_activate_signup, BP_Signup::getTo the BP devs, I hope that’s enough to solve the problem at the application code level, instead of the database hack I used. I have a feeling the error might be due to using an old WP version, as the error appears to stem from the core WP files and not the BuddyPress files…
April 19, 2014 at 8:13 pm #181778In reply to: 2.1 top features
simple-man
ParticipantFix the following error:
Invalid Activation Key
Or
at least some kind of workaround it
in the admin section where admin can manually activate the user and send the email that user account has been activated.
Thank you.
April 5, 2014 at 6:00 pm #180845In reply to: Will BuddyPress 2.0 fix this problem?
simple-man
Participant@espellcaste I agree that we should not disable it.
But since it is holding us moving ahead since people can’t use site, so I think at least an option to disable sending the activation email (i.e. bypassing activation) will be good while people are trying to resolve this issue.
Also it will help let people use the site. Currently people just give up after seeing the “Invalid Activation Key” message and don’t return back to the site.
Thank for your suggestions. Really appreciated.
April 5, 2014 at 4:18 am #180826justsayno1
ParticipantI am having this exact issue. I am a developer and I know how to run through the steps mentioned here..
What I have tried is to find a user that is stuck in not being activated and running putting this on one of my pages:
<?php $user = get_userdatabylogin('busaany'); echo $user->ID; echo get_user_meta( $user->id , 'activation_key', true ); ?>This yeilded an activation key:
2429b4ee92830f6557b5b5be271b5078defeSo I tried to plug that into the activation key url as such:
http://bounty.co.nz/activate-account/?key=2429b4ee92830f6557b5b5be271b5078defeThis brought me to the invalid key page as mentioned by others… This is a major issue and I am getting all sorts of stress/grief from my client. I am 100% committed to fixing this issue myself if that is what has to be done. But I was hoping that my putting this here could give the buddy press devs some more info on what is going on. This use HAS signed up, this use HAS tried to go to this link and it failed first time.
I have used a plugin called buddypress pending activations to try and remedy this and trouble shoot it. It allows me to figure out who is being caught and it is a non-trivial amount of users. The user remains in the pending regardless of visiting that link or entering the code into the box on the page…
Any leads? I will be getting this locally set up and try and debug buddypress as I am certain this is buddypress thing now not a server issue. But if you can get me any help or direction that would be great. If I can fix this I will let you guys know and we can get this resolved in the core.
Regards,
Justsayno1 -
AuthorSearch Results