• WP version 5.3.3-alpha-47419

    When activating a plugin, Query monitor reports 710 errors:

    Trying to access array offset on value of type bool in wp-admin/includes/class-wp-filesystem-direct.php:226

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    When activating ANY plugin or a specific one?

    Thread Starter Jacob N. Breetvelt

    (@opajaap)

    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.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Installing a plugin by uploading the zip from the pc:

    I can’t reproduce this on a Mac.

    Can you test on WP 5.4 RC1? https://ww.wp.xz.cn/news/2020/03/wordpress-5-4-release-candidate/

    Thread Starter Jacob N. Breetvelt

    (@opajaap)

    Fixed WP 5.4 RC1
    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP notices at plugin activation’ is closed to new replies.