title: stdClass wordpress plugin error
body: <p>when i'm accessing to wordpress dashbord to install new plugin an error occurs as mentionned </p>
  
  <blockquote>
    <p>stdClass::$plugin in /var/sentora/hostdata/websitenligne/public_html/sme2/wp-includes/class-wp-list-util.php on line 150</p>
  </blockquote>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>public function pluck( $field, $index_key = null ) {
    if ( ! $index_key ) {
     /*
      * This is simple. Could at some point wrap array_column()
      * if we knew we had an array of arrays.
      */
     foreach ( $this-&gt;output as $key =&gt; $value ) {
      if ( is_object( $value ) ) {
       $this-&gt;output[ $key ] = $value-&gt;$field;
      } else {
       $this-&gt;output[ $key ] = $value[ $field ];
      }
     }
     return $this-&gt;output;
    }
  
    /*
     * When index_key is not set for a particular item, push the value
     * to the end of the stack. This is how array_column() behaves.
     */
    $newlist = array();
    foreach ( $this-&gt;output as $value ) {
     if ( is_object( $value ) ) {
      if ( isset( $value-&gt;$index_key ) ) {
       $newlist[ $value-&gt;$index_key ] = $value-&gt;$field;
      } else {
       $newlist[] = $value-&gt;$field;
      }
     } else {
      if ( isset( $value[ $index_key ] ) ) {
       $newlist[ $value[ $index_key ] ] = $value[ $field ];
      } else {
       $newlist[] = $value[ $field ];
      }
     }
    }
  
    $this-&gt;output = $newlist;
  
    return $this-&gt;output;
   }</code></pre>
  </div>
  </div>
  </p>
  
  <p>what was the error ?</p>