Make WordPress Core

Opened 6 weeks ago

Last modified 6 weeks ago

#63246 new defect (bug)

Undefined Property

Reported by: neo2k23's profile neo2k23 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)

#1 @siliconforks
6 weeks 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
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?

#3 @neo2k23
6 weeks 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.

Note: See TracTickets for help on using tickets.