Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter iugonathan

    (@iugonathan)

    Hi Matthew,

    Thank you so much for adding this feature!

    I just tested and it’s working perfectly. Prelive site: exported, imported on my dev site and both If Menu conditions and icons were brought across.

    I really like the other improvements in 1.3.0 too: in-place restore, multi-menu export/import, bulk backup and inline rename.

    Rolling this out across all sites – it solves a big problem really well.

    Thank you!
    Nathan

    Thread Starter iugonathan

    (@iugonathan)

    Thank you Matthew! 😊

    Thank you for your fast reply, and for considering this request!

    Nathan

    Hi Chad,

    Thanks for the great plugin!

    I was on 3.2.2.1 but still receiving the, “Sorry, username is a required field” error on attempted registration.
    I worked out the cause. Leaving the fix here in case anyone has the same issue; at least they can benefit from the time I spent debugging it.

    I was using the ‘wpmem_register_form_rows‘ filter to update the username field HTML in the registration form.

    I was using:

    add_filter( 'wpmem_register_form_rows', 'wpMembersChangeRegistrationRows', 10, 2);
    
    function wpMembersChangeRegistrationRows( $rows, $tag ) {
        if ($tag == 'new') {
    		$rows['username'] = array(
    			'order' => 3,
    			'row_before' => '',
    			'row_after' => '',
    			'field_before' => '',
    			'field_after' => '',
    			'field' => '<input name="user_login" type="text" id="user_login" value="" class="textbox" required="">',
    			'label' => '<label for="user_login" class="text">Username<span class="req">*</span></label>',
    			'type' => 'text',
    		);
    	}
    
    	return $rows;
    }

    I outputted $rows['username'] in this function and saw that the input now uses ‘username’ for the input name instead of ‘user_login’.

    Updating this field name from ‘user_login’ to ‘username’ fixed it for me.

    I’m guessing others may come across this if they are also overriding the username field and label with this filter.

    Also, I still get the Uncaught TypeError: $(...).select2 is not a function error in the main settings page: Settings > WP-Members Options.

    I’m using the updated fix from this commit:
    https://github.com/butlerblog/wp-members/commit/4d3bd820da356b027a88f87b1617a76057361f74
    I installed a new WordPress site, and only added WP-Members and this JS error still occurs for me.

    Cheers,
    Nathan

    • This reply was modified 7 years, 10 months ago by iugonathan.
Viewing 3 replies - 1 through 3 (of 3 total)