Here is more detailed info:
The reported error is on uploading a plugin zip, not on activation, sorry for that.
The PHP version is 7.4.3
————————
Installing a plugin by uploading the zip from the pc:
Trying to access array offset on value of type bool in wp-admin/includes/class-wp-filesystem-direct.php:226
Stack:
wp-admin/includes/class-wp-filesystem-direct.php:226
WP_Filesystem_Direct->owner()
wp-admin/includes/class-wp-filesystem-direct.php:597
WP_Filesystem_Direct->dirlist()
wp-admin/includes/class-wp-upgrader.php:497
WP_Upgrader->install_package()
wp-admin/includes/class-wp-upgrader.php:789
WP_Upgrader->run()
wp-admin/includes/class-plugin-upgrader.php:108
Plugin_Upgrader->install()
wp-admin/update.php:164
The number of notices varies by the plugin. E.g. a plugin that contains only a readme and one php file generates 8 messages, the plugin that triggers 710 msgs has 92 files and 8 subdirs with content.
——————-
Deleting a plugin or updating a plugin directly from the item in the plugins page:
PHP Errors in Ajax Response query-monitor.js:316:13
{…}
?component: “Core”
?file: “wp-admin/includes/class-wp-filesystem-direct.php”
?line: 226
?message: “Trying to access array offset on value of type bool”
?stack: (6) […]
??0: “WP_Filesystem_Direct->owner()”
??1: “WP_Filesystem_Direct->dirlist()”
??2: “WP_Filesystem_Direct->delete()”
??3: “delete_plugins()”
??4: “wp_ajax_delete_plugin()”
??5: “do_action(‘wp_ajax_delete-plugin’)”
??length: 6
??
————–
The plugins work correctly.
Hope this helps.