Title: Error: Warning: in_array() expects parameter 2 to be array, boolean
Last modified: July 17, 2018

---

# Error: Warning: in_array() expects parameter 2 to be array, boolean

 *  Resolved [John O](https://wordpress.org/support/users/jossoway/)
 * (@jossoway)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-warning-in_array-expects-parameter-2-to-be-array-boolean/)
 * Hi,
 * A colleague of mine has asked me to help because her website running Ultimate
   Member plugin has run into some issues.
 * At the moment, where member content should display, this content is shown:
 * `Warning: in_array() expects parameter 2 to be array, boolean given in /[site
   url here]/wp-content/plugins/ultimate-member/includes/core/class-shortcodes.php
   on line 533`
 * In addition, in the WordPress plugins directory, there is a message saying the
   following:
 * > Ultimate Member Gallery is inactive. The Ultimate Member plugin must be active
   > for Ultimate Member Gallery to work. Please install & activate Ultimate Member
 * Yes the Ultimate Member plugin is active.
 * Any idea what could be causing this?
 * Thankd
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-warning-in_array-expects-parameter-2-to-be-array-boolean%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [Ultimate Member Support](https://wordpress.org/support/users/ultimatemembersupport/)
 * (@ultimatemembersupport)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-warning-in_array-expects-parameter-2-to-be-array-boolean/#post-10504110)
 * Hi [@jossoway](https://wordpress.org/support/users/jossoway/),
 * This issue can be caused by your server settings or some conflicts with your 
   theme or other plugins.
    Please do a quick conflict test and see if this issue
   goes away. Here is the [doc on how to do a conflict test](https://docs.ultimatemember.com/article/96-how-to-do-a-plugin-theme-conflict-test)
   if you are not sure how to do it.
 * Regards.

Viewing 1 replies (of 1 total)

The topic ‘Error: Warning: in_array() expects parameter 2 to be array, boolean’ 
is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ultimate Member Support](https://wordpress.org/support/users/ultimatemembersupport/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/error-warning-in_array-expects-parameter-2-to-be-array-boolean/#post-10504110)
 * Status: resolved