The places where this is failing are related to some of the plugin’s stored settings that, based on the errors you have displayed, don’t seem to be loaded properly.
Looking at the directory \wp-members-master\ my question is where did you get the original install package? Was this downloaded from GitHub? And if so, what specific package?
If this was loaded directly from ww.wp.xz.cn, generally, the directory is going to be /wp-members/.
The directory name itself doesn’t really matter for the plugin to operate, but in trying to figure out why you don’t seem to have a clean install it makes me question whether you’ve got something out of date (such as the BlueHost mirror at https://github.com/wp-plugins/wp-members which is severely out of date) or something beta (such as my repo here: https://github.com/butlerblog/wp-members/).
In either case, I think what you need to do is clear things out and reinstall. In order to make sure that reinstalling results in a clean install, you need to deactivate the plugin in the WP plugin panel, then run the delete option in the plugin panel to make sure that any db settings are removed. Then install the package from here on ww.wp.xz.cn.
Thank you for the quick reply.
I’ve actually downloaded and tried several versions of the plugin some of which i found on gethub and some i downloaded from here at ww.wp.xz.cn, and no matter which version i download i always seem to stumble upon the same error message when activating the plugin.
But nevertheless i’ll try to re-install the plugin one more time as you suggested as soon as possible and reply with the result.
Still the same warning error even after downloading it from ww.wp.xz.cn, this is what I get:
“The plugin generated 17850 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.”
alongside these
( ! ) Warning: array_key_exists() expects parameter 2 to be array, boolean given in C:\wamp\www\wordpress\wp-content\plugins\wp-members\wp-members-install.php on line 464
Call Stack
#
Time
Memory
Function
Location
1 0.0004 136760 {main}( ) ...\plugins.php:0
2 0.0009 141384 require_once( 'C:\wamp\www\wordpress\wp-admin\network\admin.php' ) ...\plugins.php:11
3 0.0015 185320 require_once( 'C:\wamp\www\wordpress\wp-admin\admin.php' ) ...\admin.php:13
4 0.0018 197752 require_once( 'C:\wamp\www\wordpress\wp-load.php' ) ...\admin.php:31
5 0.0020 206816 require_once( 'C:\wamp\www\wordpress\wp-config.php' ) ...\wp-load.php:37
6 0.0026 285744 require_once( 'C:\wamp\www\wordpress\wp-settings.php' ) ...\wp-config.php:97
7 0.5276 25968584 do_action( ) ...\wp-settings.php:377
8 0.5277 25969896 call_user_func_array:{C:\wamp\www\wordpress\wp-includes\plugin.php:525} ( ) ...\plugin.php:525
9 0.5277 25970016 wpmem_init( ) ...\plugin.php:525
10 0.5288 26072456 WP_Members->__construct( ) ...\wp-members.php:113
11 0.5302 26126008 wpmem_upgrade_settings( ) ...\class-wp-members.php:55
12 0.5302 26126032 wpmem_upgrade_dialogs( ) ...\wp-members-install.php:170
13 0.5306 26126288 array_key_exists ( ) ...\wp-members-install.php:464
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\wordpress\wp-content\plugins\wp-members\wp-members-install.php on line 468
Call Stack
#
Time
Memory
Function
Location
1 0.0004 136760 {main}( ) ...\plugins.php:0
2 0.0009 141384 require_once( 'C:\wamp\www\wordpress\wp-admin\network\admin.php' ) ...\plugins.php:11
3 0.0015 185320 require_once( 'C:\wamp\www\wordpress\wp-admin\admin.php' ) ...\admin.php:13
4 0.0018 197752 require_once( 'C:\wamp\www\wordpress\wp-load.php' ) ...\admin.php:31
5 0.0020 206816 require_once( 'C:\wamp\www\wordpress\wp-config.php' ) ...\wp-load.php:37
6 0.0026 285744 require_once( 'C:\wamp\www\wordpress\wp-settings.php' ) ...\wp-config.php:97
7 0.5276 25968584 do_action( ) ...\wp-settings.php:377
8 0.5277 25969896 call_user_func_array:{C:\wamp\www\wordpress\wp-includes\plugin.php:525} ( ) ...\plugin.php:525
9 0.5277 25970016 wpmem_init( ) ...\plugin.php:525
10 0.5288 26072456 WP_Members->__construct( ) ...\wp-members.php:113
11 0.5302 26126008 wpmem_upgrade_settings( ) ...\class-wp-members.php:55
12 0.5302 26126032 wpmem_upgrade_dialogs( ) ...\wp-members-install.php:170
( ! ) Warning: array_key_exists() expects parameter 2 to be array, boolean given in C:\wamp\www\wordpress\wp-content\plugins\wp-members\wp-members-install.php on line 175
Call Stack
#
Time
Memory
Function
Location
1 0.0004 136760 {main}( ) ...\plugins.php:0
2 0.0009 141384 require_once( 'C:\wamp\www\wordpress\wp-admin\network\admin.php' ) ...\plugins.php:11
3 0.0015 185320 require_once( 'C:\wamp\www\wordpress\wp-admin\admin.php' ) ...\admin.php:13
4 0.0018 197752 require_once( 'C:\wamp\www\wordpress\wp-load.php' ) ...\admin.php:31
5 0.0020 206816 require_once( 'C:\wamp\www\wordpress\wp-config.php' ) ...\wp-load.php:37
6 0.0026 285744 require_once( 'C:\wamp\www\wordpress\wp-settings.php' ) ...\wp-config.php:97
7 0.5276 25968584 do_action( ) ...\wp-settings.php:377
8 0.5277 25969896 call_user_func_array:{C:\wamp\www\wordpress\wp-includes\plugin.php:525} ( ) ...\plugin.php:525
9 0.5277 25970016 wpmem_init( ) ...\plugin.php:525
10 0.5288 26072456 WP_Members->__construct( ) ...\wp-members.php:113
11 0.5302 26126008 wpmem_upgrade_settings( ) ...\class-wp-members.php:55
12 0.5379 26127128 array_key_exists ( ) ...\wp-members-install.php:175
**UPDATE**
I’ve managed to get the plugin working.
However, whenever I go to the user edit page I get this message at the bottom of the page under the additional fields section (everything is showing and working except the additional fields which -even if disabled- still show this error message)
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\azmi\wp-content\plugins\wp-members\admin\user-profile.php on line 72
Call Stack
# Time Memory Function Location
1 0.0007 135816 {main}( ) ...\user-edit.php:0
2 0.7557 31126584 require( 'C:\wamp\www\azmi\wp-admin\user-edit.php' ) ...\user-edit.php:16
3 0.8421 31425320 do_action( ) ...\user-edit.php:598
4 0.8421 31426248 call_user_func_array:{C:\wamp\www\azmi\wp-includes\plugin.php:525} ( ) ...\plugin.php:525
5 0.8421 31426376 wpmem_admin_fields( ) ...\plugin.php:525
I also get this error whenever I update a profile’s info (when I revisit the page the update is applied but every time I make an update I get this error and can’t do anything except closing the tab and reopening the website)
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\azmi\wp-content\plugins\wp-members\admin\user-profile.php on line 208
Call Stack
# Time Memory Function Location
1 0.0005 145032 {main}( ) ...\user-edit.php:0
2 0.7299 31139448 require( 'C:\wamp\www\azmi\wp-admin\user-edit.php' ) ...\user-edit.php:16
3 0.7340 31160416 do_action( ) ...\user-edit.php:134
4 0.7340 31161304 call_user_func_array:{C:\wamp\www\azmi\wp-includes\plugin.php:525} ( ) ...\plugin.php:525
5 0.7340 31161344 ffl_save_extra_profile_fields( ) ...\plugin.php:525
6 0.7345 31161824 wp_update_user( ) ...\force-first-last.php:50
7 0.7356 31160904 wp_insert_user( ) ...\user.php:1761
8 0.7419 31194320 do_action( ) ...\user.php:1661
9 0.7425 31198064 call_user_func_array:{C:\wamp\www\azmi\wp-includes\plugin.php:525} ( ) ...\plugin.php:525
10 0.7425 31198160 wpmem_admin_update( ) ...\plugin.php:525
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\azmi\wp-content\plugins\wp-members\admin\user-profile.php on line 208
Call Stack
# Time Memory Function Location
1 0.0005 145032 {main}( ) ...\user-edit.php:0
2 0.7299 31139448 require( 'C:\wamp\www\azmi\wp-admin\user-edit.php' ) ...\user-edit.php:16
3 0.7463 31182328 edit_user( ) ...\user-edit.php:147
4 0.7470 31187416 wp_update_user( ) ...\user.php:182
5 0.7638 31229888 wp_insert_user( ) ...\user.php:1761
6 0.7690 31237760 do_action( ) ...\user.php:1661
7 0.7696 31241272 call_user_func_array:{C:\wamp\www\azmi\wp-includes\plugin.php:525} ( ) ...\plugin.php:525
8 0.7696 31241288 wpmem_admin_update( ) ...\plugin.php:525
( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\azmi\wp-content\plugins\wp-members\admin\user-profile.php:208) in C:\wamp\www\azmi\wp-includes\pluggable.php on line 1167
Call Stack
# Time Memory Function Location
1 0.0005 145032 {main}( ) ...\user-edit.php:0
2 0.7299 31139448 require( 'C:\wamp\www\azmi\wp-admin\user-edit.php' ) ...\user-edit.php:16
3 1.7822 31817968 wp_redirect( ) ...\user-edit.php:158
4 1.7823 31825320 header ( ) ...\pluggable.php:1167
Can you help me with this please??
Like the issues you indicated before, this appears to be related to incomplete settings for the plugin. The two issues you have here are related to what would appear to be an empty set of custom fields. The plugin installs a series of default custom fields at install, which it doesn’t look like you’ve got (hence the error).
Take a look at the plugin’s fields tab. Are there any fields in it? If so, what is there?
Could you also indicate the following:
WP version?
PHP version?
MySQL version?
What webserver is this running – is it Apache or something else?
What other plugins are installed?
There is only one field which cannot be removed, I’m guessing it’s the username field since it’s the only field showing on the registration form for the users but the field name itself isn’t showing for me (I guess this is a good time to say I can’t add fields)
https://www.dropbox.com/s/v9vyxotii4z1ckh/field.png?dl=0
My wordpress version is 4.5.3, my PHP version is 5.6.19 and my MySQL version is 5.7.11 – MySQL Community Server (GPL)
The website is running on Apache
I have about 20 plugins (19 + WP-Members) and you can find them in the picture below
https://www.dropbox.com/s/sjd8p5n1uuxxi11/Plugins.png?dl=0
This appears to be a network (multisite) install. Only one time has anyone reported a similar issue – which is basically not getting an installation of the default fields into the options table. Unfortunately, I cannot locate what that person reported the solution as.
Does this truly need to be a multisite install? Or are you using multisite just because you can? Since many people use multisite in a way that it was not intended, I suggest reading a great post from Ipstenu on whether multisite is the right option for you.
If multisite is right for you, I would look at how you are installing. The plugin does allow for both network activation and individual site activation, but clearly something is preventing complete installation with the process you are invoking. So I would suggest attempting the opposite of that. So if you’re attempting a network activation, try site activation instead.
When you get a complete install, the fields tab should resemble the image here:
http://rocketgeek.com/plugins/wp-members/docs/plugin-settings/fields/