• Resolved dassels43

    (@dassels43)


    Lately we’ve been seeing this error pop up on occasion:

    CRITICAL Uncaught TypeError: array_intersect(): Argument #1 ($array) must be of type array, null given in .../wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-include-exclude/class-mb-include-exclude.php:292
    Stack trace:
    #0 .../wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-include-exclude/class-mb-include-exclude.php(292): array_intersect()
    #1 .../wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-include-exclude/class-mb-include-exclude.php(72): MB_Include_Exclude::check_edited_user_role()
    #2 .../wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-include-exclude/class-mb-include-exclude.php(37): MB_Include_Exclude::maybe_exclude_include()
    #3 .../wp-includes/class-wp-hook.php(324): MB_Include_Exclude::check()
    #4 .../wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #5 .../wp-content/plugins/meta-box/inc/meta-box.php(74): apply_filters()
    #6 .../wp-content/plugins/meta-box/inc/meta-box.php(57): RW_Meta_Box->is_shown()
    #7 .../wp-content/plugins/meta-box/inc/meta-box-registry.php(19): RW_Meta_Box->__construct()
    #8 .../wp-content/plugins/meta-box/inc/core.php(32): RWMB_Meta_Box_Registry->make()
    #9 .../wp-includes/class-wp-hook.php(324): RWMB_Core->register_meta_boxes()
    #10 .../wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #11 .../wp-includes/plugin.php(517): WP_Hook->do_action()
    #12 .../wp-settings.php(643): do_action()
    #13 .../wp-config.php(124): require_once('...')
    #14 .../wp-load.php(50): require_once('...')
    #15 .../wp-admin/admin.php(34): require_once('...')
    #16 .../wp-admin/user-edit.php(10): require_once('...')
    #17 {main}
      thrown in .../wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-include-exclude/class-mb-include-exclude.php on line 292

    We can still edit the user page as it doesn’t call user-edit directly, but if we try going to user-edit.php directly, it returns the critical error page. We can’t see anything wrong from our usage. A similar error was reported on the MB forums as well: https://support.metabox.io/topic/call-of-wp-admin-user-edit-php-leads-to-fatal-error/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Critical error generated in Include/Exclude plugin’ is closed to new replies.