Support » Plugin: WP-Members Membership Plugin » Password reset form invalid argument?

  • Resolved fatihmorakci

    (@fatihmorakci)


    I have set up the wp members plugin and everything works like a charm, except for the forgot password form.

    It displays the following:

    Warning: Invalid argument supplied for foreach() in /home/beheerpaneel/public_html/wp-content/plugins/wp-members/inc/forms.php on line 379

    I can see the form header, the submit button and the forgot username link, but the form is nowhere to be found.

    This is the part of the code it’s referencing:

    // Put the rows from the array into $form.
    	$form = '';
    	foreach ( $rows as $row_item ) {
    		$row  = ( $row_item['row_before']   != '' ) ? $row_item['row_before'] . $args['n'] . $row_item['label'] . $args['n'] : $row_item['label'] . $args['n'];
    		$row .= ( $row_item['field_before'] != '' ) ? $row_item['field_before'] . $args['n'] . $args['t'] . $row_item['field'] . $args['n'] . $row_item['field_after'] . $args['n'] : $row_item['field'] . $args['n'];
    		$row .= ( $row_item['row_after']    != '' ) ? $row_item['row_after'] . $args['n'] : '';
    		$form.= $row;
    	}

    and line 379 specifically is:
    foreach ( $rows as $row_item ) {

    Can anyone help please?

    Page: http://www.actiecollectief.com/wachtwoord-herstellen/?a=pwdreset

    https://wordpress.org/plugins/wp-members/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    Hi Fatih – I saw your email about this and sent a response. There are only but a few instances in which this issue may occur and it is generally the result of two processes trying to do the same thing (set up the password reset to only require email and not username).

    Ok, I’ll look into it. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Password reset form invalid argument?’ is closed to new replies.