Title: Warning array_diff(): Expected parameter 2 to be an array, string given
Last modified: February 25, 2021

---

# Warning array_diff(): Expected parameter 2 to be an array, string given

 *  Resolved [jansudek](https://wordpress.org/support/users/jansudek/)
 * (@jansudek)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/warning-array_diff-expected-parameter-2-to-be-an-array-string-given/)
 * Hello, I have some warning using this plugin:
 * `Warning array_diff(): Expected parameter 2 to be an array, string given in file/
   wp-content/plugins/custom-facebook-feed/inc/CFF_Feed_Locator.php on line 122`
 * thanks for fix it
 * PHP 7.3.12
    WP 5.6.2 Smash Balloon Custom Facebook Feed 2.19

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

 *  Plugin Support [Smash Balloon Joel](https://wordpress.org/support/users/joelsmashballoon/)
 * (@joelsmashballoon)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/warning-array_diff-expected-parameter-2-to-be-an-array-string-given/#post-14100715)
 * Hey [@jansudek](https://wordpress.org/support/users/jansudek/),
 * Thank you for reaching out to us for assistance. Could you please try downloading
   the latest version of the plugin [here](https://wordpress.org/plugins/custom-facebook-feed/),
   and install it over the current version? The version will look the same however
   it should fix the error you are experiencing. If it is still there, let me know.
 * Best regards,
 *  [Goto Hayato](https://wordpress.org/support/users/gh640/)
 * (@gh640)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/warning-array_diff-expected-parameter-2-to-be-an-array-string-given/#post-14154182)
 * I got the same warning. I downloaded the latest plugin in the plugin page as 
   [@joelsmashballoon](https://wordpress.org/support/users/joelsmashballoon/) told.
   I `diff`ed the 2 `CFF_Feed_Locator.php` — one in my active website and another
   in the downloaded version but they are not different…
 * How can I help to address this issue? Thanks.
 * The versions I use in the production:
 * – WP 5.6.2
    – Smash Balloon Custom Facebook Feed 2.19
    -  This reply was modified 5 years, 3 months ago by [Goto Hayato](https://wordpress.org/support/users/gh640/).
 *  Plugin Support [Smash Balloon Joel](https://wordpress.org/support/users/joelsmashballoon/)
 * (@joelsmashballoon)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/warning-array_diff-expected-parameter-2-to-be-an-array-string-given/#post-14160985)
 * Hey [@gh640](https://wordpress.org/support/users/gh640/),
 * Thank you for reaching out to us on this as well. You’re correct in that this
   error is still occurring for specific setups and is not related to the fix mentioned
   by me earlier here. I have reported the issue and it is sure to be fixed in an
   upcoming update. If this is currently causing any site breaking errors on the
   site, please send us a support request on [smashballoon.com](http://smashballoon.com)
   and we will see about sending you a fix before the update as well.
 * Many thanks.
 *  [Goto Hayato](https://wordpress.org/support/users/gh640/)
 * (@gh640)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/warning-array_diff-expected-parameter-2-to-be-an-array-string-given/#post-14170350)
 * Hi [@joelsmashballoon](https://wordpress.org/support/users/joelsmashballoon/),
 * Thank you for your reply. It does not affect the functions of my site if I understand
   it correctly and I will wait for the upcoming update. Thank you for your support!
 *  Plugin Support [Smash Balloon Joel](https://wordpress.org/support/users/joelsmashballoon/)
 * (@joelsmashballoon)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/warning-array_diff-expected-parameter-2-to-be-an-array-string-given/#post-14172197)
 * Hey [@gh640](https://wordpress.org/support/users/gh640/),
 * Glad to be of assistance. The issue has been fixed and will be in the next update.
   If you have any issues in the future or after updating let us know as we are 
   always happy to assist.
 * Best regards.

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

The topic ‘Warning array_diff(): Expected parameter 2 to be an array, string given’
is closed to new replies.

 * ![](https://ps.w.org/custom-facebook-feed/assets/icon-256x256.png?rev=2700775)
 * [Smash Balloon Social Post Feed - Simple Social Feeds for WordPress](https://wordpress.org/plugins/custom-facebook-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-facebook-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-facebook-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-facebook-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-facebook-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-facebook-feed/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Smash Balloon Joel](https://wordpress.org/support/users/joelsmashballoon/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/warning-array_diff-expected-parameter-2-to-be-an-array-string-given/#post-14172197)
 * Status: resolved