• This plugin triggers the following PHP Notice in the WordPress debug log:

    PHP Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /wp-includes/functions.php on line 3737

    Basically, the problem traces back to this line in simple-import-users.php:

    add_management_page('Import Users', 'Import Users', 8, __FILE__, 'ddiu2_management_page');

    The “8” being passed into the capability parameter is the deprecated argument value.

    Changing the capability to ‘create_users’ makes the most sense to me. I was able to get it to work on my MultiSite network.

    Here is a good overview of the problem. I am using version 1.1 of this plugin.

    https://www.ads-software.com/plugins/simple-import-users/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP Notice: has_cap called with deprecated argument’ is closed to new replies.