• 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

    (@cbutlerjr)

    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.