Opened 6 weeks ago
Last modified 6 weeks ago
#63246 new defect (bug)
Undefined Property
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | trunk |
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 (3)
#2
@
6 weeks 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?
Note: See
TracTickets for help on using
tickets.
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.