Title: Critical error generated in Include/Exclude plugin
Last modified: November 29, 2023

---

# Critical error generated in Include/Exclude plugin

 *  Resolved [dassels43](https://wordpress.org/support/users/dassels43/)
 * (@dassels43)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/critical-error-generated-in-include-exclude-plugin/)
 * Lately we’ve been seeing this error pop up on occasion:
 *     ```wp-block-code
       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/](https://support.metabox.io/topic/call-of-wp-admin-user-edit-php-leads-to-fatal-error/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/critical-error-generated-in-include-exclude-plugin/#post-17238041)
 * Hi [@dassels43](https://wordpress.org/support/users/dassels43/),
 * We’re fixing this bug and will release a new version for [Meta Box Include Exclude](https://metabox.io/plugins/meta-box-include-exclude/)
   extension soon.

Viewing 1 replies (of 1 total)

The topic ‘Critical error generated in Include/Exclude plugin’ is closed to new 
replies.

 * ![](https://ps.w.org/meta-box/assets/icon-128x128.png?rev=1100915)
 * [Meta Box](https://wordpress.org/plugins/meta-box/)
 * [Support Threads](https://wordpress.org/support/plugin/meta-box/)
 * [Active Topics](https://wordpress.org/support/plugin/meta-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/meta-box/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/meta-box/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/critical-error-generated-in-include-exclude-plugin/#post-17238041)
 * Status: resolved