Title: Warning: in_array() expects parameter 2 to be array, string given &#8211; LOG.PHP
Last modified: June 25, 2021

---

# Warning: in_array() expects parameter 2 to be array, string given – LOG.PHP

 *  Resolved [esales2000](https://wordpress.org/support/users/esales2000/)
 * (@esales2000)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-string-given-log-php/)
 * Hi,
 * im getting the error while saving HIDE MY WP ..
    and at the WORDPRESS SETTING
   PANEL
 * Warning: in_array() expects parameter 2 to be array, string given in www/wwwroot/
   mydomain.com/wp-content/plugins/hide-my-wp/controllers/Log.php on line 86

Viewing 1 replies (of 1 total)

 *  Plugin Author [John Darrel](https://wordpress.org/support/users/johndarrel/)
 * (@johndarrel)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-string-given-log-php/#post-14599111)
 * Hi, thank you for your feedback.
 * Do you get the same error if you switch off the Debug Mode option in Hide My 
   WP Ghost?
 * > [No debug mode](https://imgur.com/a/HRMkttZ)
 * We will check and fix the notification in the plugin and release an update with
   the change.

Viewing 1 replies (of 1 total)

The topic ‘Warning: in_array() expects parameter 2 to be array, string given – LOG.
PHP’ is closed to new replies.

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

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [John Darrel](https://wordpress.org/support/users/johndarrel/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-string-given-log-php/#post-14599111)
 * Status: resolved