• C W (VYSO)

    (@cyril-washbrook)


    The plugin looks great, but I can’t seem to get it to connect to Twitter. On the settings screen, all I get is the message “You are not yet connected to Twitter. Click the image below to connect”, followed by “Unable to connect to Twitter at this time”.

    Any ideas?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author chrisnorthwood

    (@chrisnorthwood)

    Sounds like you were trying when Twitter down, or your webhost blocks outgoing connections

    Thread Starter C W (VYSO)

    (@cyril-washbrook)

    Must be the latter, as Twitter’s up. Thanks – I’ll look into it.

    Thread Starter C W (VYSO)

    (@cyril-washbrook)

    Working like a charm now – great plugin!

    Just one suggestion while I’m about it: it’d be good to have the ability to customise the tweets sent out through the plugin. I know that I could just go into Twitter and post my own tweets, but it would be a neat feature nevertheless as sometimes the first 139 characters of a live blog post aren’t going to be completely coherent on their own (or I might want to post only the first 80 characters of a particular post).

    Thread Starter C W (VYSO)

    (@cyril-washbrook)

    Actually, spoke a bit too soon. I tested this out on a host that I know allows outgoing connections – other plugins that post to Twitter from WordPress, like WordTwit, work just fine – but no updates have been sent to the Twitter account that I selected.

    [I set up the live blog on a WordPress page (https://www.mediaspy.org/report/live-blog/) and it should have been sending tweets to https://twitter.com/cyrilwashbrook.]

    Plugin Author chrisnorthwood

    (@chrisnorthwood)

    I can’t diagnose it without any more information really – is OAuth set up correctly, etc, etc… Twitter posting works fine on my test blog (and no-one else has reported this bug), so there must be something about your setup that’s stopped it working

    Thread Starter C W (VYSO)

    (@cyril-washbrook)

    I don’t doubt that there’s a way to get it to work, but I’m pretty sure it’s got nothing to do with the general site/WP setup. I’ve now tested it on three servers – our main site plus two other places – that I know allow connections with Twitter. Just to make sure, I used fresh installations of both WordPress 3.0.1 and 3.0.4, and I tried installing them both in the root and in a sub-directory.

    Still nothing’s happening – which suggests either that there’s a setup problem which coincidentally exists on all of those servers and installations, or there’s something a bit deeper at play. I’ll continue to try things out: everything else about this plugin is working great, but it’s the Twitter integration that I really need. ??

    Plugin Author chrisnorthwood

    (@chrisnorthwood)

    On the settings page, it definitely says “You are already connected to Twitter. Click the image below to change the account you are connected to.” – and the ‘Enable Twitter’ box is checked right? (best to check the simple stuff first)

    If that doesn’t work – and you’re comfortable with PHP code – then you might want to try and debug the issue yourself (it works perfectly for me, I just tested it just now), then the appropriate place to look is around line 879 in live-blogging.php. You may want to do something like add the following:

    var_dump($tweet);
    die();

    in between lines 879 and 880, and then when you post a post, see what the output of that is.

    Thread Starter C W (VYSO)

    (@cyril-washbrook)

    Yep, it does have that message. Thanks for the suggestion: I’ll have a poke through the code this morning and see where that takes me.

    Thread Starter C W (VYSO)

    (@cyril-washbrook)

    Hi Chris, I used var_dump to diagnose, and it turns out the problem was in the authentication. So I downloaded the twitteroauth library directly from github, re-uploaded the files and now it seems to be working.

    Not sure precisely what was wrong with the twitteroauth.php packaged in the plugin download: I noted that the twitteroauth.php in the plugin was about 50 bytes larger than the one I downloaded from github, but didn’t check for the precise differences. But whatever it was, it fixed the problem.

    Thanks for all the help!

    Plugin Author chrisnorthwood

    (@chrisnorthwood)

    Odd. Glad that you’ve got it to work though.

    I tried var_dump and it returned “Null.”

    I used Cyril Washbrook’s solution but it didn’t work for me. I still get “Unable to connect to Twitter at this time.”

    Any other suggestions?

    Plugin Author chrisnorthwood

    (@chrisnorthwood)

    The Twitter OAuth credentials have changed. I’ve just pushed a new version with only that change.

    Great. I’ll update and give it another try. Thank you.

    It worked for me as of 3/21/11. Thanks again.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: Live Blogging] Twitter not working?’ is closed to new replies.