Help understanding error message

[ad_1]

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]
1 Comment
  1. 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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer