I keep getting this error message on the backend whenever I go to the plugins tab. The message reads, “**Warning**: Undefined property: stdClass::$plugin in **/Users/NAME/Local Sites/SITENAME/app/public/wp-includes/class-wp-list-util.php** on line **168”**
Line 168 in that file is this:
$newlist[ $key ] = $value->$field;
The whole block is as follows:
if ( ! $index_key ) {
/*
* This is simple. Could at some point wrap array_column()
* if we knew we had an array of arrays.
*/
foreach ( $this->output as $key => $value ) {
if ( is_object( $value ) ) {
$newlist[ $key ] = $value->$field;
} elseif ( is_array( $value ) ) {
$newlist[ $key ] = $value[ $field ];
} else {
_doing_it_wrong(
__METHOD__,
__( ‘Values for the input array must be either objects or arrays.’ ),
‘6.2.0’
);
}
}
Can anyone help me identify what the issue is?
[ad_2]
Look at the stack trace – the issue isn’t with that code – it’s what’s calling the function – likely a theme or plugin.
Also, it’s just a warning. You shouldn’t run WP_DEBUG all the time on a prod site.