WordPress.org

Ready to get started?Download WordPress

Forums

Pie Register
[resolved] Couple of errors (1 post)

  1. Fungafly
    Member
    Posted 11 months ago #

    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.

    http://wordpress.org/plugins/pie-register/

Reply

You must log in to post.

About this Plugin

About this Topic