Ready to get started?Download WordPress


DevBuddy Twitter Feed
Error from class.twitter-feed.php line 426 when trying to display by search term (4 posts)

  1. rstheadmin
    Posted 7 months ago #

    Curious as to why when I try to display tweets by a search term #rSTHECON i am getting a warning message. "Invalid argument supplied for foreach() in ../class.twitter-feed.php on line 426" and nothing at all is being displayed in the area i have the short code placed. Using the widget to display as a user works just fine, unfortunately I need it for the display by search teram ability only. I have checked and if i search the term on Twitter plenty of posts come up there. do you have any ideas or advice?


  2. EjiOsigwe
    Plugin Author

    Posted 7 months ago #

    Pretty bizarre.

    I've tried it myself and it doesn't seem to want to work with that particular search term. I'm going to look into this, see if I can at least find any others that act this way and figure out a pattern.

    Once I've done that I should be able to implement and roll out a fix sharpish.

    Thanks for letting me know. I'll keep you posted.

  3. venethia
    Posted 7 months ago #

    Same problem.

  4. EjiOsigwe
    Plugin Author

    Posted 7 months ago #

    I think I've got it.

    According to the Twitter API documentation, using the API for a search restricts your search to tweets posted up to a week ago.

    The reason you're getting the error is because the plugin's code didn't accommodate for such an occurrence. I've now updated the code to reflect this and an update should be rolling our shortly.

    Regretfully, I can't do any more than shed light on the restriction: it's beyond my authority.


You must log in to post.

About this Plugin

About this Topic


No tags yet.