Title: array_filter() expects parameter 1 to be array, boolean given
Last modified: July 16, 2019

---

# array_filter() expects parameter 1 to be array, boolean given

 *  Resolved [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/array_filter-expects-parameter-1-to-be-array-boolean-given/)
 * I get a log full of those errors:
 *     ```
       [16-Jul-2019 11:02:59 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/domain/public_html/wp-content/plugins/jw-player-7-for-wp-premium/includes/jwppp-functions.php on line 59
       [16-Jul-2019 11:04:07 UTC] PHP Warning:  array_filter() expects parameter 1 to be array, boolean given in /home/domain/public_html/wp-content/plugins/jw-player-7-for-wp-premium/includes/jwppp-functions.php on line 56
       [16-Jul-2019 11:04:07 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/domain/public_html/wp-content/plugins/jw-player-7-for-wp-premium/includes/jwppp-functions.php on line 59
       [16-Jul-2019 11:05:45 UTC] PHP Warning:  array_filter() expects parameter 1 to be array, boolean given in /home/domain/public_html/wp-content/plugins/jw-player-7-for-wp-premium/includes/jwppp-functions.php on line 56
       [16-Jul-2019 11:05:45 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/domain/public_html/wp-content/plugins/jw-player-7-for-wp-premium/includes/jwppp-functions.php on line 59
       [16-Jul-2019 11:07:18 UTC] PHP Warning:  array_filter() expects parameter 1 to be array, boolean given in /home/domain/public_html/wp-content/plugins/jw-player-7-for-wp-premium/includes/jwppp-functions.php on line 56
       [16-Jul-2019 11:07:18 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/domain/public_html/wp-content/plugins/jw-player-7-for-wp-premium/includes/jwppp-functions.php on line 59
       [16-Jul-2019 11:07:49 UTC] PHP Warning:  array_filter() expects parameter 1 to be array, boolean given in /home/domain/public_html/wp-content/plugins/jw-player-7-for-wp-premium/includes/jwppp-functions.php on line 56
       [16-Jul-2019 11:07:49 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/domain/public_html/wp-content/plugins/jw-player-7-for-wp-premium/includes/jwppp-functions.php on line 59
       ```
   

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

 *  Plugin Author [ilGhera](https://wordpress.org/support/users/ghera74/)
 * (@ghera74)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/array_filter-expects-parameter-1-to-be-array-boolean-given/#post-11736992)
 * Hi Daniele,
    thanks for reporting this.
 * For the premium version, please open a support ticket here:
    [https://www.ilghera.com/premium-support](https://www.ilghera.com/premium-support)
 * Thanks 😉
 *  Thread Starter [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/array_filter-expects-parameter-1-to-be-array-boolean-given/#post-11796498)
 * I am doing support for a client and I don’t have any access for that but I am
   getting a lot of those errors in the log.
 *  Plugin Author [ilGhera](https://wordpress.org/support/users/ghera74/)
 * (@ghera74)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/array_filter-expects-parameter-1-to-be-array-boolean-given/#post-11800678)
 * Hi Daniele,
    please ask to your client to open a ticket for you. This forum is
   for the free version, we are talking about another software here. The premium
   plugin comes with a one year license that includes updates and premium support.
   With a valid premium key, you’ll receive an answer in few hours. Thanks.
 *  [EricaFisher](https://wordpress.org/support/users/ericafisher/)
 * (@ericafisher)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/array_filter-expects-parameter-1-to-be-array-boolean-given/#post-11865831)
 * [@ghera74](https://wordpress.org/support/users/ghera74/) This error is happening
   for me in the free version, as well.
 *     ```
       [25-Aug-2019 23:31:06 UTC] PHP Warning:  array_filter() expects parameter 1 to be array, boolean given in /home/thomasm2/public_html/wp-content/plugins/jw-player-7-for-wp/includes/jwppp-functions.php on line 63
       ```
   
 *  [creativecenter1996](https://wordpress.org/support/users/creativecenter1996/)
 * (@creativecenter1996)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/array_filter-expects-parameter-1-to-be-array-boolean-given/#post-12124165)
 * It seems I got same issue, my pages disappeared and I get this error on home 
   page
    Warning: array_filter() expects parameter 1 to be array, string given in/
   home/whxqu9k7vfsb/public_html/wp-content/plugins/woo-wishlist/includes/functions.
   php on line 576
 * Warning: array_filter() expects parameter 1 to be array, string given in /home/
   whxqu9k7vfsb/public_html/wp-content/plugins/woo-wishlist/includes/functions.php
   on line 149
 * Could anyone help?
 *  Plugin Author [ilGhera](https://wordpress.org/support/users/ghera74/)
 * (@ghera74)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/array_filter-expects-parameter-1-to-be-array-boolean-given/#post-12124324)
 * Hi [@creativecenter1996](https://wordpress.org/support/users/creativecenter1996/),
 * the error you’re getting comes from the plugin woo-wishlist, please try to ask
   them if they can help you.
 * Thanks.
 *  [belachkar](https://wordpress.org/support/users/belachkar/)
 * (@belachkar)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/array_filter-expects-parameter-1-to-be-array-boolean-given/#post-12691573)
 * Error 1:
    PHP Warning: array_filter() expects parameter 1 to be array, string
   given in: …\wp-content\plugins\woo-wishlist\includes\functions.php on line 149
 * Error 2:
    array_filter() expects parameter 1 to be array, string given in: …\
   wp-content\plugins\woo-wishlist\includes\functions.php on line 576
 * The original code:
    `$wishlist_id = array_filter($wishlist_id);`
 * The fix:
    `$wishlist_id = is_array($wishlist_id) ? array_filter($wishlist_id):
   array_filter([$wishlist_id]);`
 * You must replace the original code with this one.
    Hope it helps.
    -  This reply was modified 6 years, 1 month ago by [belachkar](https://wordpress.org/support/users/belachkar/).

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

The topic ‘array_filter() expects parameter 1 to be array, boolean given’ is closed
to new replies.

 * ![](https://ps.w.org/jw-player-7-for-wp/assets/icon-256x256.png?rev=2679793)
 * [JW Player for WordPress](https://wordpress.org/plugins/jw-player-7-for-wp/)
 * [Support Threads](https://wordpress.org/support/plugin/jw-player-7-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/jw-player-7-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jw-player-7-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jw-player-7-for-wp/reviews/)

## Tags

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

 * 7 replies
 * 1 participant
 * Last reply from: [belachkar](https://wordpress.org/support/users/belachkar/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/array_filter-expects-parameter-1-to-be-array-boolean-given/#post-12691573)
 * Status: resolved