Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] User Activation Issue


  • proteas
    Participant

    @proteas

    Hello,

    I’m using WordPress 4.2.2 with BuddyPress 2.2.3.1. and the issue occurs even with the default themes.

    The problem is when a user registers on my website he gets activated immediately, without going through the regular email activation process.

    When I try to register a test user, I see the notice to check my email for the activation code. The email is sent with an activation code and when I click on the link it says “Invalid Key” (of course the user is already activated so I think this is normal).

    I checked the database at the “sign-ups” table and I noticed that a user registers at say 22:10:10 and gets “automatically” activated one or two seconds later.

    What could possibly be causing this? I deactivated all other plugins besides BuddyPress and this still happens.

Viewing 18 replies - 1 through 18 (of 18 total)

  • proteas
    Participant

    @proteas

    Hello,

    I’m still trying to solve this. Does anyone have any ideas?


    proteas
    Participant

    @proteas

    Sorry for bumping again, but I have some new info.

    I tried to register with two other domains I own and it works properly. It still does not work with all the other domains I have, as well as any gmail or hotmail email accounts. This is so weird…


    danbp
    Moderator

    @danbp

    Which plugins are installed/activated ?


    proteas
    Participant

    @proteas

    I have already deactivated all plugins, leaving only BuddyPress active and it still happens.

    The plugins I currently have installed are:
    Agreeable
    bbPress
    BuddyPress Activity Privacy
    BuddyPress Cover Photo
    BuddyPress
    WPBakery Visual Composer
    K Elements
    Rendez Vous
    Revolution Slider
    Social Articles
    Ultimate Coming Soon Page
    W3 Total Cache
    Wp Mail Bank by Tech Banker
    WordPress Simple Security Firewall
    WPAchievements


    danbp
    Moderator

    @danbp

    Have you cleared the cache before testing ?


    proteas
    Participant

    @proteas

    Yes, I did. The problem existed even before I installed the W3 Total Cache plugin. I also tried different browsers and different computers.


    danbp
    Moderator

    @danbp

    Have you a forgotten custom function somewhere who automatically add users or used a plugin for this in the past ?
    Are you on a single or multisite install ?

    Ensure that brower cache is cleared before you add a test user. Sometimes, such manipulation is done by site admin and if you don’t loggout while adding the activation key for the fake user, a cookie conflict occurs.


    proteas
    Participant

    @proteas

    No, I don’t think so as it is a new site (about a month old) and I think I would remember.
    It’s a single install.


    danbp
    Moderator

    @danbp

    Is site online ? Can you share the url ?


    proteas
    Participant

    @proteas

    Sure. The site is http://www.sinaxtite.com. It’s all in Greek though, but you can still see the problem. Use the top menu, the right-most menu item is “Registration”. The only fields you need to fill are the standard ones, the left column is the standard wordpress registration fields, on the right you only need to fill in the user display name and click on the checkbox below for terms and condition acceptance.


    proteas
    Participant

    @proteas

    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?


    danbp
    Moderator

    @danbp

    I’m unable to tell what happens. I tried to register, received the mail, clicked on activation link and error message.
    Tried to login, and didn’t found the wp-login page.

    Some url’s are weird or wrong… and i suspect you haven’t correctly setup BuddyPress.

    Deactivate all plugins but BP
    Deactivate kleo theme and activate 2012 or 2014.

    Go to BP settings and check all pages. You need a page for each component. This page must only have a title and should be absolutely blank, without any template or page model assigned.

    Go to permalinks and select an option. Whatever except default. Save.

    Via FTP, delete wp-config.php and htaccess. This will not affect the DB content
    Run WP install again (yoursite.com/install). The goal is to generate a brand new htaccess and wp-config file.
    When you’re asked for, use salt key generator and copy/paste the result to wp-config

    If all went correctly, you have a fresh install.

    Return to BP settings and check that anything is still in place. Register and activation page maybe completed or not assigned. In this case, assign a page to each.

    Return to permalinks and simply save the page.

    Now you can test registering again. If it is ok, you activate kleo and re-test registering.

    Subsidiary question: have you installed WP manually or did you used a hosted automated package ?

    Check also kleo’s support about BP configuration.


    danbp
    Moderator

    @danbp

    Cross posting !

    There is no problem with sending emails, the problem is around the activation key or perhaps a wrong message output due to language file…

    Forgot to tell you to revert site language to english while testing.
    Make a register test in english, if ok, change the language and re-test.


    proteas
    Participant

    @proteas

    I used Softaculous to install WordPress myself.

    I will try your suggestions and let you know, thank you so much for your responses.


    proteas
    Participant

    @proteas

    Ok will test language as well.


    proteas
    Participant

    @proteas

    I deactivated all other plugins besides BuddyPress. Activated the 2014 theme. Changed the language to English and made sure BuddyPress pages were all assigned. The permalinks were already not on default. Then I deleted the wp-config and htaccess.

    Then I got to the point of install. I was asked for database information. I put the information of my already existing database, but I changed the wp_ table prefix to match the one I use for my already existing database and WP said that there was already an installation and didn’t go further. It automatically generated the wp-config with new hashes, but not .htaccess. I created it myself and only put the WP default .htaccess code:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Just to make sure, I also downloaded my entire public_html directory, and also downloaded a fresh copy of WordPress 4.2.2 and BuddyPress 2.2.3.1 and then ran them through a file difference checker application. The only two differences I found were:

    1. “version.php” inside the WordPress “includes” folder
    had as last line $wp_local_package = ‘el’; and I removed it and

    2. in BuddyPress “bp-members” folder the file “bp-members-template.php” I had changed a language string and I replaced the entire file with the fresh copy.

    All other WordPress and BuddyPress files are completely identical with the original versions.

    I used a different browser to register, but the problem persists exactly the same. It doesn’t work for any gmail account, but works for 1 of the two domains that used to work before.


    proteas
    Participant

    @proteas

    Now I have completely deleted the MySql database and all WordPress files. I did a completely clean install of WordPress 4.2.2 (without using Softaculous) and the only plugin I installed and activated is BuddyPress 2.2.3.1. Haven’t changed the language or anything else.

    The problem is still there, exactly the same. The users get activated immediately after registration without clicking on the email link that is being sent to them.


    proteas
    Participant

    @proteas

    OK problem solved. It wasn’t my setup after all, it was the spam filters my hosting company was using.

    I found out thanks to this post here:

    Invalid activation link fix?

    I only wished I found it earlier.

Viewing 18 replies - 1 through 18 (of 18 total)
  • The topic ‘[Resolved] User Activation Issue’ is closed to new replies.
Skip to toolbar