Title: Error on Password Page
Last modified: August 14, 2018

---

# Error on Password Page

 *  Resolved [micorpat](https://wordpress.org/support/users/micorpat/)
 * (@micorpat)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-on-password-page/)
 * Using the shortcode [wp-members page=password] when not logged in
 * Warning: Invalid argument supplied for foreach() in //wp-content/plugins/wp-members/
   inc/class-wp-members-forms.php on line 507
 * WP 4.9.8
    Plugin 3.2.2.1
 * Any Idea ?
 * Thank you !
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-on-password-page%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-on-password-page/#post-10590273)
 * The [wp-members] shortcode tag was deprecated over two years ago and should be
   replaced with the more recent version, which in this case is [wpmem_form password].
   See: [https://rocketgeek.com/shortcodes/list-of-replacement-shortcodes/](https://rocketgeek.com/shortcodes/list-of-replacement-shortcodes/)
 * However, the shortcode does actually work and the error you are receiving is 
   not likely an issue as a result of the outdated shortcode.
 * The problem is most likely that there is an issue with the rows array for the
   form assembly. In the forgot password form, that is generally caused by running
   some functions from outside sources that are incompatible with each other and
   result in no form rows being in the array used by the form builder.
 * When I looked at the site, I can see that you are using the Email as Username
   extension (and also some others) so you must have been a premium support subscriber
   at some point. It’s possible that you have some incompatible settings and/or 
   customization regarding having the forgot password reset be just the email address(
   instead of the username & email).
 * If you have a customization to have the password reset require just the email
   address (as a custom code snippet), that is the problem and it should be removed.
   Using the Email as Username extension does this automatically (since the username
   IS the email address), so if a custom code snippet is applied to do the same 
   thing, it ends up removing the remaining form row, leaving the form with no input
   rows which causes the error.
 *  Thread Starter [micorpat](https://wordpress.org/support/users/micorpat/)
 * (@micorpat)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-on-password-page/#post-10591819)
 * Thank you, I change the old shortcode and disabled the Email as Username extension.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error on Password Page’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [micorpat](https://wordpress.org/support/users/micorpat/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/error-on-password-page/#post-10591819)
 * Status: resolved