Fix: WordPress Error Using Twitme or WP to Twitter
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.
This is Johnny the author of Twitme. Its great to see that people are helping each other. A new version of Twitme will be released soon with many new options and related to this post a new url shortning system. This system allows you to track clicks on the short urls. More info here
PS: The 1.6.x series support will be discontinued and i will release 1.7 in april with a load more of goodies.
That’s wonderful! I’ll look forward to the update! (: