Support » Plugin: Twitter Stream » Cannot use object of type stdClass as array

  • Guys is there any plan to add same better error handler to the plugin?

    Cannot use object of type stdClass as array
    wp-content/plugins/twitter-stream/twitter-stream.php:372

    twitter_stream_parse_tweets(stdClass Object ([errors] => Array ([0] => stdClass Object ([message] => Rate limit exceeded,[code] => 88))), Array ([username] => ,[count] => 1,[date] => ,[profile_link] => Visit My Profile,[retweets] => FALSE,[show_followers] => ,[cache_time] => 5000,[echo] => 1))

    Thanks

    https://wordpress.org/plugins/twitter-stream/

Viewing 1 replies (of 1 total)
  • Plugin Author veneficusunus

    (@veneficusunus)

    Hello,

    I’m sorry for not getting back to you. I wish there was some form of notification from WP when you have posts in the support forum.

    This plugin is pretty old now. It was built during a time when I had yet to start using OOP to keep things neat and tidy and I was just starting to learn about error handling, etc.

    To that end the error checking is a bit shocking and the code is everywhere because of the lack of OOP to help organise.

    I am going to push up a fix to maintain PHP 5.5 compatibility, kindly submitted to my email by Brandon from PixelJar. I’m also going to try to add some minor error checking in.

    I’m also adding a notice on the front that this plugin is old and will only be updated (from this point on) for critical updates & bug fixes. Instead I would advise using my new plugin Aoi Tori which I’m actively maintaining. If you have any problems with that plugin please using the Github issue tracker as it is much easier to use for developers than these support forums.

    Thank you for using the plugin and again apologies for not being around to reply to your issue.

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot use object of type stdClass as array’ is closed to new replies.