Search Results for 'Invalid activation key'
-
Search Results
-
Topic: Activation key Invalid
Seems 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?
I 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.Topic: invalid activation key error
I 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
Topic: Invalid activation key
So I’ve been plagued by this from users who either try and use their activation email again, or some that double click on the link. They all end up on the classic ‘Invalid activation key’ page.
Looking at the buddypress code I think there is a bug (feature?) that means that once an activation code is used once, it will never be able to be used again. This is despite there being code further on in this process to check this scenario and return an error of ‘The user is already active’. This code NEVER RUNS, because of the way the key is looked up in the database.
The SQL that is generated to find the key looks something like this:
SELECT * FROM wp_signups WHERE active = 0 AND activation_key = 'aIR3Zc1z7h2YAtAxcEND65EUL3UV8Vw5' ORDER BY signup_id DESC LIMIT 0, 1
so once an account is activated (active=1), the key can never be looked up again. Hence the error my users were getting.
It’s quite easy to reinstate the old behaviour, so that the code will detect an already activated account:
//filter the query that checks for activation keys to fix an annoying bug //that activation keys cannot be used more than once //so that we actually get a 'already_active' error message if(! function_exists('my_filter_get_signups')) { function my_filter_get_signups($sql_text,$sql_array,$caller_args,$args) { if(!empty($caller_args['activation_key'])) { $sql_array['where']=str_replace('active = 0','1 = 1',$sql_array['where']); $sql_text = implode(' ', $sql_array); } return $sql_text; } add_filter('bp_members_signups_paged_query','my_filter_get_signups',10,4); }
You could then catch that error and take the user say to the login screen or wherever you want:
//redirect to my login screen with error message if account already activated if(! function_exists('my_core_activate_account')) { function my_core_activate_account($user) { if(! empty($user->errors)) { if(isset($user->errors['already_active'])) { bp_core_add_message( $user->get_error_message(), 'error' ); bp_core_redirect( ... ); } } return $user; } add_filter('bp_core_activate_account','my_core_activate_account',10); }
Hope this helps someone.
Fresh install of WP at http://facets.expert. Tried to install BP plugin, then activate. Received message referred to in below thread, then site died. Just gone. There are a dozen similar reports on Google search, so I am surprised there is no mention on this forum. I am going to reinstall WP, but would appreciate any advice.
Hello,
It appears that myself and many many others have succumb to the issue where new registrants get the activation email, but it directs them to the red “invalid activation key” error.
The key does not show up in the database (phpmyadmin).
There needs to be a fix for this as there appears to be no solution at the moment. It appears to be a very common issue.
I personally need help as soon as possible please. I’ve scoured the forums and the web for answers, and currently have many frustrated people trying to join my site. (I was getting too many bots creating users so a “professional” told me to change the register page URL. It seems to have broken the link from the register page to the database. I changed the URL back, but it didn’t help. I’m now told in the buddypress support forum here that there’s no way to recover from this…???)
Any help, advice, updates (I’m running the latest version Version 2.9.4 on WordPress 4.9.5) would be amazing and beyond appreciated, please. I can’t redo my site as I have about 100 users and about 300 pages.
Thanks so much,
TTopic: Cannot activate user
Hi,
We were getting too many bot users, so we changed our Register page URL. This appeared to work well, however pending users no longer show up (in the backend), and when someone registers and receives the activation email, the link gives them an “Invalid activation key” error.
The user definitely exists in the system somewhere because we tried to re-input our test user, and it says the user and email exists…. but it doesn’t show up in “pending users.”
WordPress 4.9.5
BuddyPress Version 2.9.4Topic: Invalid activation key
Hello,
After my users register on my site they’re directed to the activation page asking for an activation key after clicking a link in their email.
Then screen then reads ‘Invalid activation key’
Have i done something wrong during setup? How can i fix the issue? Any ideas?
WordPress 4.9.1,
BuddyPress 2.9.2,Topic: Invalid Activation Key
Good Afternoon All,
Thanks in advance for any support…it’s much appreciated this is an amazing piece of software. I am using BuddyPress with S2Member free version and can’t seem to fix this tricky issue.
Site: studentmotorsport.com
Wordpress Version: 4.7.2
Site Template: MSocial
BuddyPress Ver: 2.8.0My website uses PayPal buttons set via S2 member at 4 levels of paid membership 1-4…I have set Open Registration to NO in S2 Mmeber as I am not offering any free users.
Problem 1 Open Registration NO: After Payment via PayPal the user is directed to ‘Create an account’, after completion the message presented says ‘User registration is currently not allowed’. Here a user has been recorded by WordPress and user emailed activation link. Can the message presented be changed or user redirected to my welcome page?
Problem 2 Open Registration YES: After Payment via PayPal the user is directed to ‘Create an account’, after completion the message presented says ‘Check you email to activate your account’. I check my email and have been sent an an ‘activation email’, after selecting the message presented says: Invalid Activation key. In this instance if I set ‘Open Registration to Yes’ each paying member is allocated as a free subscriber in WordPress and I have to manually edit each user to the correct paid level.
Problem 3: Whether Open Registration is set to YES or No I check my email and have been sent an an ‘activation email’, after selecting the message presented says: Invalid Activation key.
Any help would be appreciated.
With regards
JP
Topic: Invalid activation key
I know this is an old topic and I have read all of these including all the comments.. My problem seems to be pritty straight forward, when I click activate link from the email it says Invalid activation key and ask for a activation key.
I am using latest version of both wp and bp.
I am using wp smtp, I tried all the usual like deactivating all the plugins and themes etc etc. But the problem remains the same.However, I found out in my database under wp_user the user_activation_key field is empty.
On the other hand, on wp_signup table looks like activation keys are getting generated..
Only thing I didnt do yet is reseting the database. ( Dont wanna do it unless its absolute necessaray. )
I am not expert, but I can follow with a little bit of detailed instruction.. Can anyone help me out here? Everything else is ready but this..Topic: Invalid Activation Key
I’m having trouble with the activation link for my site. After sign-up the email with the activation link is sent but then I get an invalid key error sometimes when I use the link.
When I check on the user, they are indeed confirmed and can log in with no problems even with the invalid key error. Any Ideas?
hi,
My site (basic40.hu) lost the front page, and there is a message: invalid activation key.
What does it mean? Where can I set it?Thanks for your help!
szekeresf