Make WordPress Core

Opened 9 months ago

Closed 6 months ago

#63246 closed defect (bug) (duplicate)

Undefined Property

Reported by: neo2k23's profile neo2k23 Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.9
Component: General Keywords:
Focuses: Cc:

Description

Warning: Undefined property: stdClass::$plugin in /var/docs/public/wp-includes/class-wp-list-util.php on line 168

Using debug mode in latest wp 6.8-RC2-60133

getting this message once every day when going to the plugins in the admin area.

any idea what is causing this?

Change History (5)

#1 @siliconforks
9 months ago

Probably a full stack trace will be needed to debug this.

You could try adding something like this to your wp-config.php file:

set_error_handler( static function () {
        ob_start();
        debug_print_backtrace();
        error_log( ob_get_clean() );
        return false;
} );

Then the next time the warning occurs, there should be a (probably lengthy) stack trace in your error log file.

#2 @abcd95
9 months ago

I was able to reproduce this issue. This happens when an object in the list processed by WP_List_Util does not have the plugin property.

Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /var/www/src/wp-admin/includes/class-wp-plugins-list-table.php:208 Stack trace: #0 /var/www/src/wp-admin/plugins.php(553): WP_Plugins_List_Table->prepare_items() #1 {main} thrown in /var/www/src/wp-admin/includes/class-wp-plugins-list-table.php on line 208

This is likely caused by corrupted plugin data or some other plugin modifying the plugin list data.

@neo2k23 can you confirm if there is some corrupted plugin doing this?

#3 @neo2k23
9 months ago

I will add the code and see what it is. I will get back to you if i have a answer on this. since it its not consistent i have to wait until it reappears again.

This ticket was mentioned in Slack in #core by dd32. View the logs.


6 months ago

#5 @dd32
6 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #44582.

Note: See TracTickets for help on using tickets.