Fix: WordPress Error Using Twitme or WP to Twitter

January 13, 2010 / Updated: January 13, 2010 / Lena Shore

I was getting an error in a WordPress blog when I posted a new post. Like many people, I enjoy a little plugin (Twitme) that will send a message to Twitter whenever a new post goes up. It’s quite a timesaver. It took me a while to figure out the problem so I thought I’d post my experience here in case it helps someone else.

But, recently, I was getting an error while using Twitme:

Fatal error: Cannot use object of type stdClass as array in …/wp-content/plugins/twitme/twitmeShortUrl.php on line 37

My first thought was that it Twitme needed and update. So, I installed “WP to Twitter” and received a similar error:

Twitter Error when posting: Fatal error: Cannot use object of type stdClass as array in …/wp-content/plugins/wp-to-twitter/wp-to-twitter.php on line 324

I have recently updated to the newest WordPress. So, I’m not sure if it is that something isn’t playing right with the new version. BUT, more importantly, I was able to figure out it has something to do with the shorten URL feature of these programs.

Solution? Just turn off the shortening option in the settings. Twitter still shortens it and no more error.

Posted in

Archives

Categories