Title: Warning: in_array() expects parameter 2 to be array, string given in
Last modified: August 23, 2019

---

# Warning: in_array() expects parameter 2 to be array, string given in

 *  Resolved [elizascar](https://wordpress.org/support/users/elizascar/)
 * (@elizascar)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-string-given-in/)
 * Receiving this error message in header after WP Geo Plug in update this morning:
 * Warning: in_array() expects parameter 2 to be array, string given in /home2/insurance/
   public_html/wp-content/plugins/cf-geoplugin/includes/class-cf-geoplugin-shortcodes.
   php on line 167
 * Warning: in_array() expects parameter 2 to be array, string given in /home2/insurance/
   public_html/wp-content/plugins/cf-geoplugin/includes/class-cf-geoplugin-shortcodes.
   php on line 169
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home2/insurance/public_html/wp-content/plugins/cf-geoplugin/includes/class-
   cf-geoplugin-shortcodes.php:167) in /home2/insurance/public_html/wp-admin/includes/
   misc.php on line 1196
 * Any suggestions on what I can / need to do to fix this? Worked fine with the 
   previous version.
 * 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-to-be-array-string-given-in%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Ivijan-Stefan Stipic](https://wordpress.org/support/users/ivijanstefan/)
 * (@ivijanstefan)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-string-given-in/#post-11862893)
 * We fix this problem.
 * Sorry for this.
 * You need update plugin and use it now with no errors.
 * NOTE:
    On the live websites is danger to have enabled PHP notices and errors.
   That can cause security issue. Instead of that just log all errors in some TXT
   file on the server.
 * Cheers
 *  [sleek12](https://wordpress.org/support/users/sleek12/)
 * (@sleek12)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-string-given-in/#post-12165288)
 * I am having the same problem, how do i resolve ?
    My domain is [Flora Safaris](http://www.florasafaris.com)
 * Warning: in_array() expects parameter 2 to be array, string given in /home/florasafaris/
   public_html/wp-content/plugins/ultimate-social-media-plus/libs/controllers/sfsi_frontpopUp.
   php on line 24

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

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

 * ![](https://ps.w.org/cf-geoplugin/assets/icon-256x256.png?rev=2852950)
 * [Geo Controller](https://wordpress.org/plugins/cf-geoplugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf-geoplugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf-geoplugin/)
 * [Active Topics](https://wordpress.org/support/plugin/cf-geoplugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf-geoplugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf-geoplugin/reviews/)

## Tags

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

 * 2 replies
 * 1 participant
 * Last reply from: [sleek12](https://wordpress.org/support/users/sleek12/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-string-given-in/#post-12165288)
 * Status: resolved