• Resolved 2cats

    (@2cats)


    Hi, The plug-in seems to be working fine, but when I am viewing the “All Users” table from the dashboard, and click on “Screen Options”, I get this error message at the top of the “Screen Options” box:

    Warning: Invalid argument supplied for foreach() in /home2/domain/public_html/wp-content/plugins/amr-users/includes/ameta-admin.php on line 48

    I looked at the file in question, seems to be this bit:

    function amr_add_user_columns ($columns) {
    	$colstoadd = ausers_get_option ('amr-users-show-in-wplist');
    	$nicenames = ausers_get_option ('amr-users-nicenames');
    	foreach ($colstoadd as $field => $show) {
    		if ($show) {
    			if (!empty($nicenames[$field]))
    				$columns[$field] =  $nicenames[$field];
    			else
    				$columns[$field] = $field;
    		}
    	}
    	return $columns;
    }

    Any idea how I can fix this so the error message doesn’t show? Thanks!

    https://wordpress.org/plugins/amr-users/

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

    (@anmari)

    Ahh yes – until next update add any field to show in the wp user list.

    Go to user list settings > general > find fields and you’ll see an option to tick each of your fields to show in the wp list.

    Tick at least one extra and that should sort it. (It’s getting a false at moment instead of an array)

    Thread Starter 2cats

    (@2cats)

    OK, that worked! I just ticked email, and then “re-hid” it via Screen Options, and the error message is gone. Thanks for your quick reply!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Screen Options error message for All Users display’ is closed to new replies.