Title: error Warning: in_array() expects parameter 2 to be array, null given
Last modified: August 30, 2016

---

# error Warning: in_array() expects parameter 2 to be array, null given

 *  Resolved [dwebone](https://wordpress.org/support/users/dwebone/)
 * (@dwebone)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-warning-in_array-expects-parameter-2-to-be-array-null-given/)
 * I see this error in the admin under “Activity”.
    Warning: in_array() expects 
   parameter 2 to be array, null given in /home/public_html/wp-content/plugins/wp-
   cerber/dashboard.php on line 158 Should I be concerned? Can you help?
 * [https://wordpress.org/plugins/wp-cerber/](https://wordpress.org/plugins/wp-cerber/)

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

 *  Thread Starter [dwebone](https://wordpress.org/support/users/dwebone/)
 * (@dwebone)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-warning-in_array-expects-parameter-2-to-be-array-null-given/#post-6608267)
 * This error is showing on multiple sites.
 *  Plugin Author [gioni](https://wordpress.org/support/users/gioni/)
 * (@gioni)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-warning-in_array-expects-parameter-2-to-be-array-null-given/#post-6608287)
 * Hi!
    First. Don’t worry. That’s only informational warning. It doesn’t lead to
   any problems. I’ll fix that message next week. Please, wait for next release 
   of WP Cerber. Second. You should be concerned about another thing. I mean showing
   PHP errors & messages. Check the wp-config.php file for this line:
 *     ```
       define('WP_DEBUG', true);
       ```
   
 *  Thread Starter [dwebone](https://wordpress.org/support/users/dwebone/)
 * (@dwebone)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-warning-in_array-expects-parameter-2-to-be-array-null-given/#post-6608319)
 * Thanks for the reply. I have Debug turned off (false).
    So far your app has blocked
   100s of attempts since I installed it 6 hours ago. Looking forward to next update.
   I’ll send you a donation, I’m not rich but I guess every little bit helps. I 
   would say this is resolved.
 *  Plugin Author [gioni](https://wordpress.org/support/users/gioni/)
 * (@gioni)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-warning-in_array-expects-parameter-2-to-be-array-null-given/#post-6608349)
 * Thank you for your kind donation! Your support of the project will keep development
   moving forward. I hope that you will continue to use WP Cebrer on your projects.
   
   Update will be ready soon.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/wp-cerber_77a9bf.svg)
 * [WP Cerber Security, Anti-spam & Malware Scan](https://wordpress.org/plugins/wp-cerber/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cerber/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cerber/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cerber/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cerber/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cerber/reviews/)

## Tags

 * [dashboard.php](https://wordpress.org/support/topic-tag/dashboard-php/)
 * [line](https://wordpress.org/support/topic-tag/line/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 4 replies
 * 2 participants
 * Last reply from: [gioni](https://wordpress.org/support/users/gioni/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/error-warning-in_array-expects-parameter-2-to-be-array-null-given/#post-6608349)
 * Status: resolved