Fix: WordPress Error Using Twitme or WP to Twitter

January 13, 2010 · 2 comments   in Wordpress

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.

{ 2 comments… read them below or add one }

1 Johnny Mast March 21, 2010 at 7:43 pm

Hi there,
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

http://www.phpvrouwen.nl/2010/03/20/shorturl-on-twitme-1-7/

PS: The 1.6.x series support will be discontinued and i will release 1.7 in april with a load more of goodies.

Reply

2 Lena March 22, 2010 at 7:52 am

That’s wonderful! I’ll look forward to the update! (:

Reply

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: