WordPress.org

Support

Support » Plugins and Hacks » PHP error in StormTwitter.class.php

PHP error in StormTwitter.class.php

Viewing 5 replies - 1 through 5 (of 5 total)
  • Maybe that line can be wrapped in an if(is_array()?

    Experiencing the same problem. It was fine a few weeks ago and suddenly (I didn’t even change anything) it’s been giving me this error and my feed won’t show up.

    Does anyone have a fix for this? Thanks!

    Edit: Figured it out. As redearthdesign mentioned, use is_array(). I’m using the following code now and it works:

    if (is_array(getTweets(1)))
    {
    $tweets = getTweets(1);
    
    foreach ($tweets as $tweet)
    {
    // The rest of your code
    }
    }

    Didn’t work for me I’m afraid, same error persists. I too made no changes.

    Plugin Author Liam Gladdy

    @lgladdy

    Not sure why a WordPress upgrade will break this – but i’ll get it fixed – we should be validating that is an array anyway in any example output!

    That would be great, thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP error in StormTwitter.class.php’ is closed to new replies.