Title: PHP errors updating fields in Settings/WP-Members
Last modified: February 13, 2017

---

# PHP errors updating fields in Settings/WP-Members

 *  [hughbe](https://wordpress.org/support/users/hughbe/)
 * (@hughbe)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-errors-updating-fields-in-settingswp-members/)
 * I’m trying to remove the fields that are required for a user to provide when 
   they register.
 * In Settings/WP-Members/Fields I select Display? and Required? for all fields 
   but First Name and Last Name.
 * Then I click “Update Fields”
 * I get the following warnings, and the fields fail to update:
 * Warning: Invalid argument supplied for foreach() in /storage/h2/193/748193/public_html/
   wp-content/plugins/wp-members/inc/class-wp-members.php on line 597
 * Warning: Invalid argument supplied for foreach() in /storage/h2/193/748193/public_html/
   wp-content/plugins/wp-members/inc/forms.php on line 677

Viewing 1 replies (of 1 total)

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-errors-updating-fields-in-settingswp-members/#post-8808088)
 * It seems very strange that you would get this error. This would tend to indicate
   that the custom fields array is empty or does not exist (which could be a faulty
   install). However, it sounds like there were fields when you were updating. And
   there is a process for “self healing” this as a potential issue in the code –
   it checks if the fields array is empty and if it is it assumes a faulty install
   and installs the defaults.
 * Is this a multisite installation?
 * I would recommend that you remove and reinstall the plugin to make sure that 
   you have (1) all of the plugin’s files and (2) that you get a clean and proper
   install to start with.

Viewing 1 replies (of 1 total)

The topic ‘PHP errors updating fields in Settings/WP-Members’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/php-errors-updating-fields-in-settingswp-members/#post-8808088)
 * Status: not resolved