WP to Twitter FAQ

All plug-ins:
Donations: $5197.40. Downloads: ~870,000. That’s about one half cent per download. Donors’ Roll

Support this plugin!

Have a feature you’d like to see added? Request it at Fundry!

This FAQ has been closed. You’re encouraged to browse the comments to look for a solution to your problem — comments older than the most recent few hundred are unlikely to help you, as they date to older versions of the plugin. To get support, make your request at the new WP to Twitter support page.

Return to Top

1,036 Comments to “WP to Twitter FAQ”

  1. Hey there, if I try to sumbit a new Entry the following Error shows up:

    Fatal error: Cannot use object of type stdClass as array in /home/kunden/webs/lordimac/wp-content/plugins/wp-to-twitter/wp-to-twitter.php on line 263

    I am running:
    Apache 2.2.14
    PHP 5.2.12
    MySQL 5.0.84
    Wordpress 2.9.2
    I’m running a new Install of WP -> Twitter

  2. i changed another API,twitter default API is unavailable.
    so these services are successfully.but, it can not update twitter.
    is it the cls.gs API Key unavailable?
    I will give up use the plugin if the reason of website or service shielded.

    the notify:
    WP to Twitter successfully contacted your selected URL shortening service. The following link should point to your blog homepage: http://cli.gs/v4S5T
    WP to Twitter successfully submitted a status update to your primary update service.
    Your server should run WP to Twitter successfully.

    errors:
    One or more of your last posts has failed to send it’s status update to Twitter. Your Tweet has been saved in your post custom fields, and you can re-Tweet it at your leisure.

    The query to the URL shortener API failed, and your URL was not shrunk. The full post URL was attached to your Tweet. Check with your URL shortening provider to see if there are any known issues. [Cli.gs Blog] [Bit.ly Blog]

    Sorry! I couldn’t get in touch with the Twitter servers to post your new blog post. Your tweet has been stored in a custom field attached to the post, so you can Tweet it manually if you wish!

    other is not change except twitter default API.

    THANKS.

  3. @joe dolson & Michael

    OK,i check my cofigration again.thanks for your help and suggestion.

  4. @the1826 Well, there’s nothing in your settings which is indicative; so you might want to take that image off Flickr. As Michael suggested, posting your API codes isn’t necessarily a good idea. It’s not a major security risk; but it could result in people posting short links to your accounts, which could get confusing for you!

    I have to say that given the other problems you seem to be experiencing — unable to get to Twitter, inaccessible web site, etc., it’s entirely likely that your problems is coming from something external to the plugin or WordPress, in which case I can’t really help you. I recommend talking to your host to see if they have any suggestions. It may be a configuration in their PHP installation which is restricting your ability to use the various functions which could allow you to post to an external URL.

  5. @Michael

    oh,hehe ,never mind.

  6. @the1826

    Er, you might want to blur out your API codes.

  7. No, I’m afraid I can’t get there - nor can I get a traceroute on the site. When I do a ping on the domain name, I get a connection failure. So…I don’t know what’s up there, but it’s definitely something weirder than average, I’d say…

    These shots I can see, however - so I’ll see if I can identify anything. If you post or email me your settings export, that would also be useful to me. (Export Settings: top right corner of the settings page.)

  8. @joe dolson:
    you can’t visit it? do not my website shielded from other countries。god。

    i upload to my flickr.
    screenshot1
    http://www.flickr.com/photos/the1826/4406937944/
    screenshot2
    http://www.flickr.com/photos/the1826/4406937962/
    screenshot3
    http://www.flickr.com/photos/the1826/4406171513/
    screenshot4
     http://www.flickr.com/photos/the1826/4406171549/

  9. @Ada Whoops! That’s embarassing. I’m normally pretty conscientious about that…

    @edwin Thanks for letting me know — I’ll have to set up some more verbose error logging to try and track this done. The method of querying the shortener services is pretty straightforward, so it’s unclear to me what the problem might be for the few people for whom it’s not working.

  10. Im experiencing the same problem with Michael. This is the error message
    “The query to the URL shortener API failed, and your URL was not shrunk. The full post URL was attached to your Tweet. Check with your URL shortening provider to see if there are any known issues. [Cli.gs Blog] [Bit.ly Blog]”
    Following have been tried. It initially clears the error, but returns after very new post.
    1) Re-enter twitter password,
    2) Reset and save new API for Bit.ly
    3) Disabled Bit.ly and Cli.gs
    4) Not using YOURLS

    Below detail on my site:
    WP version 2.9.2,
    Linux server,
    An Upgrade, not new installation.

  11. FYI, there is a typo in this error message.

    One or more of your last posts has failed to send it’s status update to Twitter.”

    There is no apostrophe in the possessive form of it.

  12. The YOURLs install is remote. I just attempted Cli.gs and got the same error. This is PHP 5.2, the hosting company is NearlyFreeSpeech (https://www.nearlyfreespeech.net/)
    Is there a way to generate a more verbose error log, perhaps?

  13. @Cheryl Ah, well that’s a bit different, then. Clear the error message, then check 1) whether the option “use both services” (it shouldn’t be, unless you’re using multiple services) is checked in the Twitter Compatible API settings and 2) Check “reset Twitter compatible API settings” to make sure that the API info hasn’t been changed.

    @Michael That’s unusual…I’ve definitely had experience with people who had the opposite problem (shortening worked, Twitter post didn’t) but this may be a first. Is this a remote or a local YOURLs installation? What version of PHP do you have installed on the server? I would suggest trying Cli.gs — they use a different type of API. If Cli.gs does work for you, that would help identify the problem.

    @the1826 I’m just getting a connection error when I try to view those images - I’ll check again later.

  14. @Joe Dolson:
    Thank for ur warm-hearted.
    so the pic below is the screenshot of my wp-twitter dashboard.
     http://www.irecords.cn/blog/images/screenshot.gif

    this is the notify when i check support every time.
     http://www.irecords.cn/blog/images/screenshot2.gif

    another setting in post page.but i do not set it.
     http://www.irecords.cn/blog/images/screenshot3.gif

    this is the betweeted window in my igoogle account.
     http://www.irecords.cn/blog/images/screenshot4.gif

    the red line is the first time when i install this plugin.i don’t know how it appear.
    the blue line is autotest.i think maybe it’s sccess.but,later,i try many and many times,failure.i do not konw why.

    the green line used textarea itself.

    above all.thank your help again.

  15. Should add I get the same error using bit.ly (I haven’t tried cli.gs though I imagine it would be the same). When I run check support I get:
    “WP to Twitter was unable to contact your selected URL shortening service.
    WP to Twitter successfully submitted a status update to your primary update service.
    Your server should run WP to Twitter successfully.”“

  16. I just installed this and I’m trying to set it up with my YOURLS install. I’m getting this error “The query to the URL shortener API failed, and your URL was not shrunk”. All the fields are filed out properly. Any ideas?

  17. @Cheryl Well, you may want to start by verifying your Twitter username and password. The plugin failed to connect to Twitter, so that would be my first choice to check.

    I’ve verified and my Twitter settings are correct. Here’s the odd thing, it IS in fact tweeting - but is showing me that error on my WordPress dashboard.

  18. @Cheryl Well, you may want to start by verifying your Twitter username and password. The plugin failed to connect to Twitter, so that would be my first choice to check.

    @the1826 That’s very weird…the test post is run using the same settings and functions used to tweet posts; so if that works, there’s really no reason that other posting wouldn’t, unless there’s something else awry in your settings. If you can provide me with your settings, that may help.

  19. but it’s succeed at the beginning,the autotest article can be seen by igoogle.

    but there isn’t success after that.

    oh,it’s so strange.

  20. Thanks — but there isn’t really anything I can do to help you access Twitter if the service is blocked for you. If you can find a service using the Twitter-compatible API which you *can* access, you can use that service; but there’s nothing I can do to get you into Twitter.

  21. WordPress 2.8.6; Hosted server at Network Solutions; was new installation, performed auto upgrade this morning - but problem was before upgrade. I logged into my WordPress Dashboard today and received WordPress to Twitter error message. I performed the auto upgrade and tested the settings and I’m still getting:

    WP to Twitter Options

    This plugin may not fully work in your server environment. The plugin failed to contact both a URL shortener API and the Twitter service API.

    * WP to Twitter successfully contacted your selected URL shortening service. The following link should point to your blog homepage: http://cli.gs/vqLRt
    * WP to Twitter failed to submit an update to your primary update service.
    * Your server should run WP to Twitter successfully.

    How do I fix this?

  22. one point should be added,i can’t visit twitter.com. only by third-party programs。now i’m in china.

  23. hi,joedolson:

    There are some trouble when i install it.

    always notify:WP to Twitter failed to submit an update to your primary update service.

    how to set it up?could u help me ?

  24. Yes, that’s true - Twitter fails silently for any Tweet longer than 140 characters.

  25. Never mind, I think I got it. If your title, and other preset text (short url, etc) is longer than 140 characters Twitter rejects it. DUH!

  26. Hey Joe,

    I love the plug-in, problem is it works intermittently. I’m not getting any error messages. Just sometimes it works, sometimes it doesn’t.

  27. There seems to be some kind of a problem with Bit.ly in WP to Twitter, although I don’t know exactly what it is yet. Does the test button produce a short URL correctly?

  28. Can’t get it to work. Installed, entered twitter info, entered bit.ly name and key, hit the test button and all seems good. Just doesn’t update my twitter. I have all categories checked to update so I’m not sure what the issue is.

  29. WP to Twitter works if I post from the web.. If I email a post from my phone, it’s not posting it to twitter.. Any suggestions? I have Send Twitter Updates on remote publication checked.. Still not working!! I even tried upgrading to the 2.0 version today.. I use postie to post from email to WP.. help?

  30. I’d say upgrade PHP to 5.2.12 (avoid 5.3.x for now)

  31. @Dietbran Upgrading to 5.2.6 would make a difference for you; it’s the difference between using the native json_encode function and the one added by either the plugin or WordPress.

    @Florian Glad you like it! I’m not sure that’ll be a priority, although it’s something to think about.

    @epologee Possibly! :)

  32. Love the plug-in! I’m using WP to Twitter as a private notifier on a closed twitter account, so multiple participators can follow them, as it is much faster than RSS aggregates. Would the option to tweet when a comment is posted be a future possibility?

    Cheers,
     Eric-Paul

  33. I just installed this plugin on a new blog of mine which already has several posts. Works great, everything fine, but there is one feature I’d love to see: The ability to select a few older posts and publish them to twitter instantly. I wanted like 5 posts in my account and had to manually add them via the update post. Not a big thing, but if a blogger is new to twitter he/she may want to fill the account with some interesting posts at the beginning.

  34. WP version: 2.9.2
    LAMP setup
    new install of a recently updated WP

    The PHP Fatal error: Cannot use object of type stdClass as array error I get only goes off when I use Bit.Ly as my URL shortening service. Cli.gs works great. I’m running PHP 5.1.2.

    Should I upgrade to 5.2.6?

  35. Current WordPress Version: 2.9.1
    Server Type - Apache / Linux
    WP to Twitter: Version 2.0.1
    Upgraded from 1.5.7, which had the same problem.

    If I use Windows Live Writer to edit a post, WP to Twitter will tweet it again as if it’s a new post. I only want it to tweet when a new post is made, not when one is edited.

    Update when a post is edited” is UNCHECKED.
    “Send Twitter Updates on remote publication (Post by Email or XMLRPC Client)” is CHECKED.

    Is there a fix for this?

  36. @Florian Thanks for mentioning that - I’ll get that fixed.

    @Victor That’s an interesting suggestion. I’ll have to explore qtranslate to see how that works; I have a feeling it’s quite a bit more complicated than that. I’m sure that would help for the titles, but given the degree of free and controlled text which can be contributed, it may be a lot of work. I’ll have to think about it.

  37. Please, make it compatible with qtranslate plugin.
    * adding __() for titles will solve many problems.
    * being able to configure wp-to-twitter for different languages would be a huge plus.

    Thanks.

  38. Hi there,

    I just wanted you to know that you got a very small bug in actual verson of wp-to-twitter. In uninstall.php theres a missing ; at the end of file, so you get an Error of unexpected } because of your if handle.

    Best regards

    Florian

  39. Joe,

    Post ID for YOURLS is fine.
    Greatly appreciate the effort that you have and continue to put into this plugin.

    Thanks!

    Robert

  40. @robert It’s not impossible that I’d be launching it on Monday, although that may be ambitious. I have a few things left to check; but the basics seem to be working…but I’ve made a lot of changes, so I want to test pretty thoroughly before launching.

    I have customized the YOURLS shortURL to be the post ID; I could do something more complex, but I may leave that for now, in the interest of getting this done!

  41. installed wp to twitter about 30 minutes ago, updated my bit.ly and twitter login info in the settings, and clicked “update post” on my posts. no posts are showing in my twitter - is there a delay? if so, does anyone know how long? dosent’ look like it’s working. am i doing something wrong?

    thanks!

  42. Jo,

    I am really looking forward to seeing YOURLS functionality built into WP to Twitter. Ever since I implemented my own URL shortening service using YOURLS I have been waiting for your plugin to accommodate this feature. Awesome!

    One thing I would really like to see built into the YOURLS feature is some control over the naming of the shortened URL. For posts I use Post ID and for pages I use a short name.

    When do you envisage that V2 will be made available?

    Robert

  43. I’m working on implementing YOURLS custom short URL support into the plugin, which should provide an equivalent of this. The version 2.0 release will be a major overhaul, and should be available by March 1st. (I hope!)

  44. Joe, I use the url shortener plugin “le petite url”, is there any chance that you would extend your plugin so that it would use the short urls that le petite url outputs OR add similar capability within WP to Twitter to generate it’s own custom url’s? I’d love to make a donation if this could happen!

  45. WP 2.9.1
    Server: Apache
    New Installation of the plugin

    I setup WP-Twitter to post every time I add/edit a post. However I don’t see any posts to Twitter when I add/edit posts. When I click on “check support” it says that the server should run WP=>Twitter successfully.

    Raw Settings Output: Version 1.5.7

    1 : New post: #title# (#url#) : 1
    1 : Post Edited: #title# (#url#) : 1
    : New page: #title# (#url#)
    : Page edited: #title# (#url#)
    [1 | 5 | 15]
    : New link posted: : :
    30
    [ | ]
    external_link
    [ | | 1]
    [ : ]
    Individuals:
    [0 | 1 | 0 | 0]
    _birdbrain_
    Twitter Password Saved
    [ | freethinker | Bit.ly API Saved ]
    [1 | 0 | | 0 | | 1 | 2]

  46. As an FYI to all, I’m in the midst of working on version 2.0 of the plugin, which is consuming most of my available time to respond to questions at the moment.

  47. WP Version: 2.9.1
    Server Type: Apache 2.2.3 Linux
    New installation / move from another ISP

    Since I moved my working wordpress installation with WP to Twitter plugin from one to another ISP there are no more updates sent to Twitter. Wether for new posts nor for updates. I double checked the login. Shortening the URL via bit.ly works.

    Any ideas?

    Regards Carsten

  48. Current WordPress Version: 2.9.1
    Server Type - Apache / Linux
    WP to Twitter: Version 1.5.7

    Upon publishing - I receive a white screen, and the error:

    Warning: fsockopen() [function.fsockopen]: unable to connect to cli.gs:80 in /home/xxxxxx/public_html/sincity-247/tws/wp-includes/class-snoopy.php on line 1142

    The only way to recover was to use the backspace key - finding the articlely apparently unpublished and un posted to twitter. However, nether was the case. The article was published - and it was posted to twitter but without the shortened URL.

    Went to the WP to Twitter page, and received the same error message as above…I cleared the error message, and tested the compatibility and received the following report…

    * Successfully contacted the Cli.gs API via Snoopy and created a shortened link.
    * Failed to contact the Bit.ly API via Snoopy.
    * Successfully contacted the Twitter API via Snoopy.
    * Your server should run WP to Twitter successfully.

    However, the original error appeared at the top of the page stating…

    Warning: fsockopen() [function.fsockopen]: unable to connect to cli.gs:80 in /home/xxxxxx/public_html/sincity-247/tws/wp-includes/class-snoopy.php on line 1142

    Any ideas?

  49. 2.9.1, Apache/Linux, new installation of the plugin v 1.5.7.

    I cannot see the admin page at all. You refer to this in the FAQ, but you suggest it should already be fixed. Happy to provide any other info you require.