WPIntell

Source evidence

PHP Notice: has_cap called with deprecated argument

Simple Import Users · support · 2016-02-09T15:08:00+00:00

complaintsentiment
mediumseverity
0.81relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 22 rows with source links

9.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

20 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Cameron Macintosh unresolved
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://wordpress.org/plugins/simple-import-users/ I’m also running on PHP 5.6.

Comments

1 shown
Cameron Macintosh 2016-02-09T15:51:00+00:00

I’m also running on PHP 5.6.