Title: PHP Warning
Last modified: June 5, 2017

---

# PHP Warning

 *  Resolved [svacontact](https://wordpress.org/support/users/svacontact/)
 * (@svacontact)
 * [9 years ago](https://wordpress.org/support/topic/php-warning-125/)
 * Hi,
 * I’m seeing a new PHP “warning” in the server log for version 3.18 as follows:
 * PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback,
   function ‘wpmem_admin_add_new_user’ not found or invalid function name
 * Any ideas on what might be causing this? Thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [9 years ago](https://wordpress.org/support/topic/php-warning-125/#post-9202367)
 * That function is hooked to the WP action user_new_form. The function is part 
   of the /admin/admin.php file which is only loaded if the user has ‘edit_theme_options’
   capability. Administrator and Super Admin roles both have this capability by 
   default, but if a user role editor is being used to remove that capability from
   a role using the add new user form, then that would cause the warning.
 * Technically, the function should probably be moved from admin/admin.php to admin/
   users.php, in which case the ‘list_users’ capability would be required. This 
   will be evaluated for a future update.

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning’ 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 ago](https://wordpress.org/support/topic/php-warning-125/#post-9202367)
 * Status: resolved