• Hello,

    we use [wppb-register] on a multisite. We allow users to specify their own password for the signup.

    However the password never works.

    I figured out you update the password for the user using the database call in functions wppb_manual_activate_signup() and wppb_activate_signup():

    $wpdb->update( $wpdb->users, array('user_pass' => $meta['user_pass'] ), array('ID' => $user_id) );

    You have no other option as you are storing that password in wp_signups in it’s secure form.

    However to make this work for high-performance sites with object caching (we use APC) it’s also necessary to flush the user object cache data. Here’s a quick fix I created:

    add_action( 'wppb_activate_user', 'fv_tweak_wppb_activate_user' );
    
    function fv_tweak_wppb_activate_user( $user_id ) {
      wp_cache_delete( $user_id, 'users' );
    }

    Please review this fix and include it in both free and Pro version of your plugin. If there is a Github repository, we can put our fixes there.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Georgian Cocora

    (@raster02)

    Hello there,

    We have caught up on this over our support ticketing system, I will let you know over there when our developer has taken a look at the code and implemented it.

    Best Regards,

    @foliovision,

    I am so thankful to you! Your generous code worked for me. While I have Hobbyist (paid) version of this plugin, I was unable to use this plugin with so many bugs one of which is the one you coded solution for. You would think a basic part of registration would just work. I am not sure why more PB users are not complaining about this, it is a core function that is not working! And no official fix in more that 2 weeks and 3 days after you reported this issue?

    Based to my setup: A new user registers, gets email, follows the link in email to activate, (side note at this point – It is bad that you don’t have auto login option here, but I disgrace), the user gets a message that the user was active, then he would get another email with a user name. He/she would that user name go to the site and try to login will get incorrect password message even though you typed in the correct password. What the heck!

    I have been working in other issues with very slow response support. You have to know that it will take around 24 hours to get a response during the week and all weekend+1day on weekends (seems to be no help during US day times). You have to hope that there is no urgent issue at hand! So far they are earning below average rating from me.

    I’m very unhappy about CozmosLabs response to our improvement of avatar caching. Cozmoslabs have made avatars per site rather than network wide on multisite, resulting in a situation where visitors would have to create half a dozen or even hundreds of separate avatars instead of just a single one for their profile in multisite.

    Georgian does not seem to care much about users, I’d have to agree.

    Alec

    Alec,
    Just one more problem with this plugin I want share – perhaps related to the issue of caching. Registration fails when user attempts the first login even before the “incorrect password” unless I inactivate the CloudFlare WordPress plugin. First login attempt just refreshes the page and nothing happens with something like this in address bar of browser “www.example.com/login/?frm_message=invalid_login” – no user-visible message.

    Granted the issue can be of CloudFalre’s origination. I am inclined to say that the issue is related to Profile Builder Hobbyist especially now that I know if does not manage caching correctly.

    CloudFlare is a real nightmare. This issue is probably of CloudFlare’s making. But it does look like CozmosLabs should code defensively around CloudFlare limitations.

    Profile Builder does not seem to be getting the love it could be getting from CozmosLabs development team. It’s a pity as the core is a very good start to enhanced user profiles. Profile Builder is definitely more robust than Ultimate Member which breaks on complex sites (we’ve abandoned our developers license and removed it from all our sites). Another alternative which we haven’t tried WP User Manager in earnest yet. I hope we won’t have to. It depends on CozmosLabs.

    Those are the three main choices for enhanced profiles on WordPress.

    Alec,
    Thanks for sharing your experience as a developer with user registration/profile management plugins. WP User Manager plugin you mention may come in handy if my fight with Profile Builder ends in my defeat. As a developer of my own site to go live soon, I initially researched many of these and found PB to have the right mix for me, especially Social Login add-on. I wanted to give my users both social and regular registration/login options and I did not want to have to get totally separate plugins that may be incompatible with each other. I will keep your points in mind.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Object Cache issues with user picked password’ is closed to new replies.