• 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

    (@ghera74)

    Hi Daniele,
    thanks for reporting this.

    For the premium version, please open a support ticket here:
    https://www.ilghera.com/premium-support

    Thanks ??

    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

    (@ghera74)

    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.

    @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

    (@creativecenter1996)

    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

    (@ghera74)

    Hi @creativecenter1996,

    the error you’re getting comes from the plugin woo-wishlist, please try to ask them if they can help you.

    Thanks.

    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 4 years, 7 months ago by 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.