WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Fungafly
    Member
    Posted 3 years 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic