Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'Invalid activation key'

Viewing 25 results - 1 through 25 (of 61 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

    #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' ) );
    			}
    #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.

    ๐Ÿ™

    #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!

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

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

    #186344

    In reply to: Activate your Account

    hkcharlie
    Participant

    Sorry, 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 ?

    #185894
    growingforward
    Participant

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

    malathis
    Participant

    Hi,

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

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

    #183508
    bummedbride
    Participant

    Hello 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!

    #181950
    OrlandoDS
    Participant

    Hey,

    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_signups

    Solution

    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 users

    system

    • 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::get

    To 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…

    #181778

    In reply to: 2.1 top features

    simple-man
    Participant

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

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

    #180826
    justsayno1
    Participant

    I 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:
    2429b4ee92830f6557b5b5be271b5078defe

    So I tried to plug that into the activation key url as such:

    http://bounty.co.nz/activate-account/?key=2429b4ee92830f6557b5b5be271b5078defe

    This 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

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