v2.1.2: count(): Argument #1 ($value) must be of type Countable|array
-
Hi Smash Balloon team,
After updating a client website I am seeing an error since v2.1.1 similar to described in https://www.ads-software.com/support/topic/latest-update-2-1-1-breaks-sites-on-php8/
TypeError
/wp-content/plugins/custom-twitter-feeds/inc/CtfFeed.php
in countcount(): Argument #1 ($value) must be of type Countable|array, bool given
Sentry is showing the following stack trace / context (the error is in the last line with
count( $tweet_set )
):TypeErrorcount(): Argument #1 ($value) must be of type Countable|array, bool given
/wp-content/plugins/custom-twitter-feeds/inc/CtfFeed.php
incount
at line1953
public function getTweetSetHtml( $is_pagination = 0 ){ $feed_id = $this->feedID(); $tweet_set = isset( $this->tweet_set['statuses'] ) ? $this->tweet_set['statuses'] : $this->tweet_set; $options = ctf_get_database_settings(); $len = min( $this->feed_options['num'] + $is_pagination, count( $tweet_set ) );
The website is using PHP 8.1.21 and is running the latest WordPress 6.2.2.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘v2.1.2: count(): Argument #1 ($value) must be of type Countable|array’ is closed to new replies.