Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'Invalid activation key'

Viewing 25 results - 1 through 25 (of 70 total)
  • Author
    Search Results
  • #316910
    phronesisfrigg
    Participant

    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?

    #307046
    johnyumnam
    Participant

    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

    #275442
    jakdaniel5
    Participant

    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.

    #275266
    pauapau
    Participant

    thank 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' ) );
    			}
    #272564
    ChuxMark
    Participant

    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.

    Fix needed for invalid activation key

    #271959
    T
    Participant

    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,
    T

    #271958
    T
    Participant

    Hi @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

    🙁

    #271957

    In reply to: Invalid activation key

    T
    Participant

    Hi @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.

    🙁

    #271919
    T
    Participant

    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.4

    Home

    #270079
    Alice_K2015
    Participant

    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,

    My Home Page

    #267092

    In reply to: Invalid Activation Key

    kcscience
    Participant

    I 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

    #266628
    oise73
    Participant

    Hi 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:
    2017-06-22_1538

    Our website is http://debsvillage.com/

    Help! Thank you!

    jaynation
    Participant

    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.0

    My 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

    #262261
    rsnipun
    Participant

    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..

    #260858
    cummingsbl
    Participant

    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?

    #258410
    steigw
    Participant

    It’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.

    #251936
    szekeresf
    Participant

    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

    #241118
    danbp
    Participant

    hi @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/

    #239628
    proteas
    Participant

    I 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?

    #237792
    modemlooper
    Moderator

    is 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/

    #236704

    In reply to: Double entries

    bluedawg
    Participant

    I 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 🙂

    #236397

    In reply to: Test Registation error

    danbp
    Participant

    Clear 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/

    #188669
    dylss505
    Participant

    I 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?

    #188664

    In reply to: Invalid Activation Key

    dylss505
    Participant

    Even 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?

Viewing 25 results - 1 through 25 (of 70 total)
Skip to toolbar