• Resolved Creatium

    (@creatium)


    Hi,

    I keep seeing these errors in debug log:

    PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/website/domains/website/public_html/wp-content/plugins/capability-manager-enhanced/framework/lib/users.php on line 88
    
    PHP Warning:  array_reduce() expects parameter 1 to be array, null given in /home/website/domains/website/public_html/wp-content/plugins/capability-manager-enhanced/framework/lib/users.php on line 88

    I use 2.0.2 version, current WP Version 5.7.2. But this is an ongoing problem throughout multiple WP versions.

    I’m pretty sure this is a unique problem, since I was unable to find similar questions. But maybe someone can direct me in right direction to what might be causing this?

Viewing 1 replies (of 1 total)
  • Plugin Author Kevin Behrens

    (@kevinb)

    @creatium This error is caused by pointing the role editor to a role that doesn’t have a valid capabilities array. The next release will check for this condition before executing the line of code cited in the PHP Warning.

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning array expectation error’ is closed to new replies.