• Resolved mezzomedia

    (@mezzomedia)


    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 count

    count(): 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 in count at line 1953
    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.

    • This topic was modified 1 year, 3 months ago by mezzomedia.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mezzomedia

    (@mezzomedia)

    PS I have also tried downgrading to v2.1 but this is giving the same error. Issue solved (temporarily) by downgrading to v2.0.7.

    Please let me know if I can help by providing additional info.

    Note: I am not sure if I can remove and re-add the Twitter feed without having access to the client’s Twitter account at this moment.

    Plugin Support Smash Balloon Louis

    (@smashballoonlouis)

    Hi @mezzomedia,

    Thanks for contacting us! This may be caused by a problem with saved data in the specific feed. With our new Twitter solution after the changes this year from Twitter, you do not need to connect a Twitter account for API access, so you would be able to delete and recreate the feed without access to your client’s Twitter acccount.

    If this does not resolve the issue, please try fully uninstalling and deleting the plugin and then doing a fresh install.

    If none of the steps above resolve the issue, please send us a support request here and include the System Info from the help page of the plugin settings. Please only include this information in a support request through our website as it should not be shared on the public forum here.

    Thanks!
    Louis

    Thread Starter mezzomedia

    (@mezzomedia)

    Hi Louis,

    Thanks for the quick and clear response!

    Am I correct in assuming that starting from v2.1 using a hashtag search (instead of a User Timeline) is only available in the Pro version of the plugin?

    Note: the “Try the Pro demo” button seems to link to a 404 page: https://smashballoon.com/custom-twitter-feeds/demo/hashtag?utm_campaign=twitter-free&utm_source=feed-type&utm_medium=hashtag

    Plugin Support Smash Balloon Louis

    (@smashballoonlouis)

    Hi @mezzomedia,

    You’re very welcome, it’s my pleasure to help! Yes, the Free version only supports User Timeline feeds while the Pro version also includes Hashtag feeds and Search feeds.

    Thanks for pointing out the broken link there, I’ll make sure we get that taken care of!

    Please let me know if I can help with any other questions.

    Best regards,
    Louis

    Thread Starter mezzomedia

    (@mezzomedia)

    Hi Louis,

    Thanks for confirming.

    I was looking at https://smashballoon.com/doc/smash-balloon-twitter-changes-free-version/?twitter and https://smashballoon.com/pricing/twitter-feed/ but couldn’t figure out if the Pro version supported hashtag feeds (and even thought it did not, looking at the first link).

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.