• Resolved Fungafly

    (@fungafly)


    Hello. Just letting you know of a couple of things.

    Even after upgrading to the version 1.31 of the plugin, I still had $wpdb->prepare errors, which I fixed by adding an empty string second argument to the method call in line 1952 of pie-register.php.

    When registering new users through the backend, the passwords were always being auto-generated, despite having checked the option to allow users to set their own passwords. It turns out that this error was due to an incorrect check in line 37 of piewpnun.php. The password field in the backend has a different HTML name attribute (‘pass1’) to the frontend registration form (‘user_pw’) (in fact, all inputs have different names), and this needs to be taken into account.

    To fix this, I’ve removed a seemingly needless $plaintext_pass check and rewrote the block like this:

    if( $piereg['password'] && ( !empty($_POST['user_pw']) || !empty($_POST['pass1']) ) ) {
    	$plaintext_pass = empty( $_POST['user_pw'] ) ? $_POST['pass1'] : $_POST['user_pw'];
    }

    Hope this helps.

    https://www.ads-software.com/plugins/pie-register/

  • The topic ‘Couple of errors’ is closed to new replies.