Title: Warning: in_array() expects parameter 2&#8230;
Last modified: March 25, 2018

---

# Warning: in_array() expects parameter 2…

 *  Resolved [heathen666](https://wordpress.org/support/users/heathen666/)
 * (@heathen666)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-2/)
 * I knew doing a bulk update of plugins wasn’t a good idea, I got a fatal error
   updating something and have been getting errors on my site all night. I probably
   took the most aggressive approach and deleted the active_plugins field in the
   wp-options table in my database so no plugins are running.
 * Obviously I’m getting errors now as WP Hide & Security Enhancer is no longer 
   running but installed.
 * Can you please help me out of this mess?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-in_array-expects-parameter-2-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Contributor [Maya](https://wordpress.org/support/users/tdgu/)
 * (@tdgu)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-2/#post-10117208)
 * When the WP Hide plugin is active, it turn on the output buffering so any notices
   and warnings are not visible, the WordPress can continue to run and push any 
   required headers. Now, once the plugin is not active anymore, another plugin/
   plugins which produce any notice / warring block any headers so the code stops.
   
   I suggest so you turn off the plugins one by one to see which one produce the
   issue, or turn off the notice / warning php notifications and keep just fatal
   errors.
 * Thanks
 *  Thread Starter [heathen666](https://wordpress.org/support/users/heathen666/)
 * (@heathen666)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-2/#post-10117260)
 * Hmmm I forgot to include some information.
 * I currently cannot log into the wordpress portal.
 * When I attempt to log in I’m getting the following
 * Warning: in_array() expects parameter 2 to be array, boolean given in /var/sites/
   n/neilthirkellphotography.com/public_html/wp-content/mu-plugins/wp-hide-loader.
   php on line 18
 * Warning: Cannot modify header information – headers already sent by (output started
   at /var/sites/n/neilthirkellphotography.com/public_html/wp-content/mu-plugins/
   wp-hide-loader.php:18) in /var/sites/n/neilthirkellphotography.com/public_html/
   wp-login.php on line 421
 * Warning: Cannot modify header information – headers already sent by (output started
   at /var/sites/n/neilthirkellphotography.com/public_html/wp-content/mu-plugins/
   wp-hide-loader.php:18) in /var/sites/n/neilthirkellphotography.com/public_html/
   wp-login.php on line 434
 * Warning: Cannot modify header information – headers already sent by (output started
   at /var/sites/n/neilthirkellphotography.com/public_html/wp-content/mu-plugins/
   wp-hide-loader.php:18) in /var/sites/n/neilthirkellphotography.com/public_html/
   wp-includes/pluggable.php on line 920
 * Warning: Cannot modify header information – headers already sent by (output started
   at /var/sites/n/neilthirkellphotography.com/public_html/wp-content/mu-plugins/
   wp-hide-loader.php:18) in /var/sites/n/neilthirkellphotography.com/public_html/
   wp-includes/pluggable.php on line 921
 * Warning: Cannot modify header information – headers already sent by (output started
   at /var/sites/n/neilthirkellphotography.com/public_html/wp-content/mu-plugins/
   wp-hide-loader.php:18) in /var/sites/n/neilthirkellphotography.com/public_html/
   wp-includes/pluggable.php on line 922
 *  Plugin Contributor [Maya](https://wordpress.org/support/users/tdgu/)
 * (@tdgu)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-2/#post-10118723)
 * I guess you right, as if there’s no active plugin on your site it might trigger
   the warning.
    For now, update the line 17 with he following:
 * `$active_plugins = (array)get_option('active_plugins');`
 *  Thread Starter [heathen666](https://wordpress.org/support/users/heathen666/)
 * (@heathen666)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-2/#post-10118764)
 * In which file? wp-hide-loader.php?
 *  Plugin Contributor [Maya](https://wordpress.org/support/users/tdgu/)
 * (@tdgu)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-2/#post-10120075)
 * Sorry i meant this file /var/sites/n/neilthirkellphotography.com/public_html/
   wp-content/mu-plugins/wp-hide-loader.php
 *  Thread Starter [heathen666](https://wordpress.org/support/users/heathen666/)
 * (@heathen666)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-2/#post-10131154)
 * Fixed.
 * Back into my admin portal now.
 * Thanks for the help

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Warning: in_array() expects parameter 2…’ is closed to new replies.

 * ![](https://ps.w.org/wp-hide-security-enhancer/assets/icon-256x256.png?rev=2937681)
 * [WP Hide & Security Enhancer](https://wordpress.org/plugins/wp-hide-security-enhancer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-hide-security-enhancer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-hide-security-enhancer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-hide-security-enhancer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-hide-security-enhancer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-hide-security-enhancer/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [heathen666](https://wordpress.org/support/users/heathen666/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-2/#post-10131154)
 * Status: resolved