WordPress.org

Ready to get started?Download WordPress

Forums

WP to Twitter
[resolved] WP TO TWITTER ERROR (31 posts)

  1. webmaster hypemedia
    Member
    Posted 2 years ago #

    wp version : 3.3.2
    WP to Twitter Version : 2.4.2

    All informations are given (Access level : Read and write)

    Consumer key / Consumer secret / Access token / token

    when i send de request on the WP pannel, I receve an eror :

    Your server time: Wednesday, 23-May-12 13:22:32 UTC Twitter's time: There was an error querying Twitter's servers..If these timestamps are not within 5 minutes of each other, your server will not connect to Twitter.

    Twitter requires authentication by OAuth. You will need to update your settings to complete installation of WP to Twitter.

    OAuth Authentication Failed. Your server time is not in sync with the Twitter servers. Talk to your hosting service to see what can be done.

    How can I fix it ?

    http://wordpress.org/extend/plugins/wp-to-twitter/

  2. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    You need to talk to your host. Your website is unable to communicate with Twitter. The fact that you're seeing the message that there was an error querying Twitter's servers means it's not an OAuth or any other kind of plug-in problem -- the time query is just a basic HTTP request to fetch the server current time at Twitter's API servers, with no authentication of any kind. If your host can't make that request, it won't be able to succeed at any other request at all.

    The possible issues include having remote HTTP requests locked down on your server or your IP address or your hosting service being blocked by Twitter. However, there's nothing I can do to help with this beyond telling you to talk to your hosting company.

    Best,
    Joe

  3. luke1978
    Member
    Posted 2 years ago #

    Same problem here.
    Strange is: WP to Twitter < 2.4 works fine.
    Has Twitter change API request?

    Greetings,
    Bernd

  4. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    Seriously? You're able to query the server time using version 2.3.18 but NOT using 2.4.x?

    To be clear: I'm asking specifically whether you're getting the Twitter time using 2.3.x and NOT getting it using 2.4.x.

    The reason I'm asking is because that query is *exactly* the same in the two versions: same methods, same query, etc. If it works in one version and not in another then that's just weird.

  5. luke1978
    Member
    Posted 2 years ago #

    I can't test it here, I have no backup from WP to Twitter 2.3.18. Sorry.
    It's possible to send me this version?

  6. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    2.3.18 is now available from the WP to Twitter repository:

    http://downloads.wordpress.org/plugin/wp-to-twitter.2.3.18.zip

  7. luke1978
    Member
    Posted 2 years ago #

    Hm, I can't activate the old plugin version.
    Error Message is: "Plugin can not activate. Fatal error".
    Hm.
    I disconnect from Twitter before I try to install the old version.

  8. luke1978
    Member
    Posted 2 years ago #

    Ok, another trial:
    I use another (and older) WordPress -> Twitter Plugin:
    Name is Twitter Tools Twitter Tools and this plugin works without problems.
    It use OAuth too and I think, if this plugin works, HTTP request works also.

  9. webmaster hypemedia
    Member
    Posted 2 years ago #

    Twitter Tools works ;)

    I try WP to Twitter v2.3.18 this afternoon.

    Thanks

  10. webmaster hypemedia
    Member
    Posted 2 years ago #

    When i try to install wp to twitter v2.3.18 on my blog (wp version : 3.3.2), The activation is failed.

    L’extension n’a pu être activée, car elle a déclenché une erreur fatale.

    Parse error: syntax error, unexpected T_VARIABLE in /htdocs/wp-content/plugins/wp-to-twitter/wp-to-twitter.php on line 801

    Bye

  11. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    I'm following up with somebody else to try and track down why this connection isn't working. It doesn't make clear sense to me, since it's an unchanged portion of the plug-in; but I'm continuing to investigate. I have not been able to reproduce the problem on any of my own dev site or any client sites who are running the plug-in, so it seems to be a fairly obscure issue.

    I certainly apologize to those of you affected by this issue -- but all I can do for now is continue to explore it and try and find the issue.

  12. jellyroll4264
    Member
    Posted 2 years ago #

    I'm having the same issue as well.

    Is anyone's rss feed affected, too?

    I wonder if it has to do with the new version 3.3.2?

  13. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    Question: those of you having this problem. Are you on Windows servers, by any chance?

  14. Tim
    Member
    Posted 2 years ago #

    Same problem here.
    I am on a Windows server.

  15. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the follow-up. I'll have an update out to deal with this very soon.

  16. luke1978
    Member
    Posted 2 years ago #

    Ok, I ask my hosting service and the answer is: HTTP request is free and functional.
    I am on a 64 bit Linux server

  17. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    It's possible that you have a different issue than the rest in this list, Luke. Regardless, please try the new version released today; it includes a toggle to switch between whether you are making HTTP or HTTPS requests to Twitter. Additionally, if there's a basic HTTP request error, it will report the text of that error, which would be helpful for me in any further debugging.

  18. Tim
    Member
    Posted 2 years ago #

    Updated en seems to work now.
    Thanks for the good work!

  19. luke1978
    Member
    Posted 2 years ago #

    Hi Joe,

    When I switch off HTTPS requests to Twitter, your plugin works very fine here.

  20. luke1978
    Member
    Posted 2 years ago #

    Hi,

    I use bit.ly for url shorting on WP to Twitter 2.2.4
    My bit.ly api key is right enter but WP to Twitter display an 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."

    What's wrong?

    Greetings, Bernd

  21. angelomarzolla
    Member
    Posted 2 years ago #

    Hello!

    My site: http://www.alldattia.com
    Using a Windows Server, WordPress version 3.4.1, WP to Twitter version 2.4.5.
    Same issue. See below:
    *******
    Twitter requires authentication by OAuth. You will need to update your settings to complete installation of WP to Twitter.
    WP to Twitter Set-up

    Your server time: Friday, 06-Jul-12 17:51:16 UTC Twitter's time: There was an error querying Twitter's servers.If these timestamps are not within 5 minutes of each other, your server will not connect to Twitter.

    SSL Problems? Try switching to http queries.

    SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    *******

    My other website: http://www.turista.com.br is working fine, at the same server, but in a different directory. Also WordPress 3.4.1 and WP to Twitter 2.4.5

    Thanks for trying to help us.

    Regards

    Angelo Marzolla
    http://www.alldattia.com

  22. angelomarzolla
    Member
    Posted 2 years ago #

    Hopefully this can help. http://www.alldattia.com
    twitter.com/alldattia

    I just deleted the keys and secrets (XXXX)

    *********************
    Summary Connection Response:
    Array
    (
    [http_code] => 401
    [status] => 401 Unauthorized
    )

    Account Verification Data:
    {"error":"Could not authenticate you.","request":"\/1\/account\/verify_credentials.json?oauth_consumer_key=XXXXXXXXXXXXX&oauth_nonce=XXXXXXXXXXXXX&oauth_signature=XXXXXXXXX&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1341601758&oauth_token=XXXXXXXXXXXXX&oauth_version=1.0"}
    Full Connection Response:
    jd_TwitterOAuth Object
    (
    [http_code] => 401
    [url] =>
    [host] => http://api.twitter.com/1/
    [format] => json
    [decode_json] =>
    [last_api_call:private] => http://api.twitter.com/1/account/verify_credentials.json?oauth_consumer_key=XXXXXXXXXX&oauth_nonce=XXXXXXXXXX&oauth_signature=XXXXXXXXXX&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1341601758&oauth_token=XXXXXXXXXXXXXXX&oauth_version=1.0
    [http_header] => Array
    (
    [date] => Fri, 06 Jul 2012 19:09:18 GMT
    [status] => 401 Unauthorized
    [cache-control] => no-cache, max-age=300
    [www-authenticate] => OAuth realm="http://api.twitter.com"
    [x-runtime] => 0.00315
    [content-type] => application/json; charset=utf-8
    [set-cookie] => Array
    (
    [0] => k=10.36.31.117.1341601758751315; path=/; expires=Fri, 13-Jul-12 19:09:18 GMT; domain=.twitter.com
    [1] => guest_id=v1%3A134160175875618329; domain=.twitter.com; path=/; expires=Mon, 07-Jul-2014 07:09:18 GMT
    [2] => _twitter_sess=XXXXXXXXXX--XXXXXXXXXXXX; domain=.twitter.com; path=/; HttpOnly
    )

    [expires] => Fri, 06 Jul 2012 19:14:18 GMT
    [vary] => Accept-Encoding
    [connection] => keep-alive
    [server] => tfe
    [content-encoding] => deflate
    [content-length] => 294
    )

    [sha1_method] => WPOAuthSignatureMethod_HMAC_SHA1 Object
    (
    )

    [consumer] => WPOAuthConsumer Object
    (
    [key] => XXXXXXXXXXXXX
    [secret] => XXXXXXXXXXXXXXXXX
    [callback_url] =>
    )

    [token] => WPOAuthConsumer Object
    (
    [key] => XXXXXXXXXXX
    [secret] => XXXXXXXXXXXXX
    [callback_url] =>
    )

    [useragent] => WP to Twitter http://www.joedolson.com/articles/wp-to-twitter
    )

  23. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    @angelomarzolla That second post looks like a test from attempting to connect with an HTTP connection - is that correct? When you switch to HTTP connections, do you still get an error message about the Twitter server time?

  24. skyhi
    Member
    Posted 2 years ago #

    Just my two cents: when trying to resolve this exact same issue, I tried to switch to http instead of https, and that solved it. So: secure is NOT working from my site, with a two minute time difference between Twitter and my webhost.

  25. Rattlehead
    Member
    Posted 2 years ago #

    I'm with skyhi on this. Changed from HTTPS to HTTP query and worked 1st time. It seems strange. Anyway back to work

  26. ronchicago
    Member
    Posted 2 years ago #

    i have a domain and sub-domain. my domain is connected to twitter just fine for quite some time. attempting to connect my sub-domain to twitter and used this plugin and getting the error that my server not in sync with twitter, etc. i unchecked the https in twitter setting. nothing changed. i notified my isp of the sync error and they have not responded. i'm thinking they are not going to change their time. strange why domain works and sub.domain does not. both domains have successfully applied for respective applications. i am afraid to activate this plugin in my main site which is currently working.

  27. ronchicago
    Member
    Posted 2 years ago #

    my isp said i can change time on server. i can't find a good source on how to find the twitter time. i'm looking at dev.twitter forum. anyone on wp know answer?

  28. mbentley
    Member
    Posted 1 year ago #

    Thanks a lot! Yes, this worked for me.

    By the way, I am running the site on a Windows Server 2008 (WIMP).

    Here is what to do:
    Go to your WordPress dashboard and select "Settings" (at bottom on the left).
    Then click "WP to Twitter".
    Now, the easiest way is to search for "HTTPS". You should find a section called "Disable Error Messages". In that section is a checkbox with "Switch to http connection. (Default https)". CHECK THIS. Then, check "Save Advanced WP->Twitter Options.
    You should be good to go.
    If you found this useful and find this plugin useful, then you might also want to donate to to the author by following the great big "Donate" button at the top right.

  29. punkelstein
    Member
    Posted 1 year ago #

    Have the same issue here with HTTP or HTTPS. Twitter time cannot be retrieved. Version: 2.4.11

    Is there some simple steps we can take to troubleshoot and narrow down the cause?

    e.g. From the command line I can connect to api.twitter.com with curl

    Or perhaps we can create a simple PHP file with a few commands in order to debug?

    Thanks!

  30. whatismyname
    Member
    Posted 1 year ago #

    nvrmind

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic