Title: Warning: array_intersect(): Expected parameter 2
Last modified: July 3, 2021

---

# Warning: array_intersect(): Expected parameter 2

 *  [Al](https://wordpress.org/support/users/unitingcoms/)
 * (@unitingcoms)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/warning-array_intersect-expected-parameter-2/)
 * Hi Team
 * just trying this plugin out again and after a vanilla install I get the following
   on my local lamp
 * PHP Version: 7.3.11
    Wordpress Version: 5.7.2 Plugin Version: 2.21 Current Theme:
   Twenty Sixteen
 *     ```
       Warning: array_intersect(): Expected parameter 2 to be an array, null given in C:\Ampps\www\roster\wp-content\plugins\wp-roster\inc\shortcode\roster-shortcode-header.php on line 77
   
       Warning: array_intersect(): Expected parameter 2 to be an array, null given in C:\Ampps\www\roster\wp-content\plugins\wp-roster\inc\shortcode\roster-shortcode-header.php on line 77
   
       Warning: array_intersect(): Expected parameter 2 to be an array, null given in C:\Ampps\www\roster\wp-content\plugins\wp-roster\inc\shortcode\roster-shortcode-header.php on line 77
   
       Warning: array_intersect(): Expected parameter 2 to be an array, null given in C:\Ampps\www\roster\wp-content\plugins\wp-roster\inc\shortcode\roster-shortcode-header.php on line 145
       ```
   
 * Any ideas
 * Thanks
    Al

Viewing 1 replies (of 1 total)

 *  Plugin Author [Northern Beaches Websites](https://wordpress.org/support/users/northernbeacheswebsites/)
 * (@northernbeacheswebsites)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/warning-array_intersect-expected-parameter-2/#post-14625352)
 * Hi [@unitingcoms](https://wordpress.org/support/users/unitingcoms/),
 * Where do you see this error? Can you provide a link to the page?
 * Have you saved the plugin settings? Does the error show after saving the settings?
 * Apart from the error message showing somewhere are there actually any functional
   issues caused by this error?
 * Thanks,

Viewing 1 replies (of 1 total)

The topic ‘Warning: array_intersect(): Expected parameter 2’ is closed to new replies.

 * ![](https://ps.w.org/wp-roster/assets/icon.svg?rev=1909548)
 * [WP Roster](https://wordpress.org/plugins/wp-roster/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-roster/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-roster/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-roster/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-roster/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-roster/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Northern Beaches Websites](https://wordpress.org/support/users/northernbeacheswebsites/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/warning-array_intersect-expected-parameter-2/#post-14625352)
 * Status: not resolved