Title: PHP Warning: in_array() expects parameter 2 to be array, strin
Last modified: September 6, 2021

---

# PHP Warning: in_array() expects parameter 2 to be array, strin

 *  Resolved [gwynnbleid1](https://wordpress.org/support/users/gwynnbleid1/)
 * (@gwynnbleid1)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-strin/)
 * Hello
 * I’m getting a lot of errors like this one:
    PHP Warning: in_array() expects parameter
   2 to be array, string given in /var/www/html/hidden/wp-content/plugins/facebook-
   pagelike-widget/fb_class.php on line 142, referer: [https://hidden.pl/wp-admin/widgets.php](https://hidden.pl/wp-admin/widgets.php)
 * Any chance that this will be fixed ?
 * I have up to date wordpress and current version of this widget.
 * Regards
    Mateusz

Viewing 1 replies (of 1 total)

 *  Plugin Author [Milap](https://wordpress.org/support/users/milap/)
 * (@milap)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-strin/#post-15062122)
 * Hi [@gwynnbleid1](https://wordpress.org/support/users/gwynnbleid1/),
 * Though this warning showing related to my plugin, it is due to error or issue
   in some other plugin or current theme.
 * I have checked my plugin’s code, it has no such warning.
 * Regards,
    Milap

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/facebook-pagelike-widget/assets/icon-256x256.png?rev=3518584)
 * [Buttonizer - Social Media Share Buttons, Social Icons, & Social Feeds](https://wordpress.org/plugins/facebook-pagelike-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook-pagelike-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-pagelike-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-pagelike-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-pagelike-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-pagelike-widget/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Milap](https://wordpress.org/support/users/milap/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-strin/#post-15062122)
 * Status: resolved