Opened 9 months ago
Closed 6 months ago
#63246 closed defect (bug) (duplicate)
Undefined Property
| Reported by: |
|
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)
#2
@
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
@
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.
Probably a full stack trace will be needed to debug this.
You could try adding something like this to your
wp-config.phpfile: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.