WordPress.org

Ready to get started?Download WordPress

Forums

Twitter Tools not updating (77 posts)

  1. dellsadvice
    Member
    Posted 4 years ago #

    Alex,

    My apologies if my response came off as rude. I used all caps to express my frustration that everyone seems to be having a similar problem, but so far we haven't found a solution.

    I am happy to provide details of when Twitter Tools has worked, and when it hasn't. What other type of information do you need?

    Thank you.

  2. Alex King
    Member
    Posted 4 years ago #

    everyone seems to be having a similar problem, but so far we haven't found a solution.

    I'm sorry, but I strongly disagree with that statement. There are at least a half-dozen different reports of problems in this thread, nont of which I have been able to reproduce.

    1. Tweets not updating (not being downloaded from Twitter).
    2. Digests not posting as expected.
    3. Unable to log in to Twitter.
    4. Not sending tweets on new blog posts.
    5. "Quit working"
    6. "Mine is working here and there, but certainly not like it used to."
    7. Issues with bit.ly URL shortening.

    Along with a variety of reports that it has "started working again" from the same folks who have been reporting the problems. Unless they are hacking on it, the plugin code is the same in both cases ("broken" and "working").

    I am happy to provide details of when Twitter Tools has worked, and when it hasn't. What other type of information do you need?

    A good bug report with a reproducible use case looks something like this:

    Twitter Tools Version: x.x
    WordPress Version: x.x
    Expected Behavior: I do X, Y happens
    Observed Behavior: When I do X with the following blog post title "Mary had a little lamb", Y does not happen. When I do X with the following blog post title "Whose fleece was white as snow", Y does happen.

    I should then be able to recreate that situation and see the problem as described. Once I can do that, I can debug it and fix.

    The reports here are too general, completely unreproducible in my testing (I've wasted hours trying to reproduce some of these issues, only to find that people entered passwords wrong, etc.), and mostly covered by the FAQs I linked to.

    If I seem short on patience about this it is because I am. There are many wonderful folks that use my plugins that I've enjoyed corresponding with; people who have provided helpful feedback, suggestions and bug reports. I've also seen complaints about "issues" (and by extension, my reputation dragged through the mud) by people that can't figure out how to correctly enter their username and password, read the included README, make false assumptions and build on them, etc. It can be extremely frustrating, and I simply cannot engage in discussions with all of the folks in the latter group - there are just too many WordPress users out there.

    This is why I founded the WordPress HelpCenter and created the affiliate program to support WordPress developers - individual developers can't be expected to support millions of WordPress users on their own time and expense.

  3. shekharg
    Member
    Posted 4 years ago #

    I too had the issue of Twitter Tools not posting the daily digest of tweets on my Blog. The way I solved it, is documented at my blog. Please refer to the section Update (November 15, 2009): on this page.

  4. Jeffrey Keefer
    Member
    Posted 4 years ago #

    I have been having a similar problem, and while Twitter Tools is posting my blog post to Twitter, I am not longer receiving the daily blog posts Twitter Digests I so used to like getting. I believe I have the most current versions of everything, though I am still having this issue.

    Following Alex's suggestion, I will try to provide the bug report he suggested:

    A good bug report with a reproducible use case looks something like this:

    Twitter Tools Version: 2.0
    WordPress Version: 2.8.6
    Expected Behavior: I post to Twitter every day, and I expect a daily digest of my Tweets to post to my blog
    Observed Behavior: The Tweets never post to my blog

    I took a screen shot of the top of Twitter Tools in my blog's admin screen, and noticed there is a strange look for the date:
    http://silenceandvoice.com/wp-content/uploads/2009/11/twitter-tools-problem.jpg

    The drop downs also seem a little odd, so I took another screenshot of one of them:
    http://silenceandvoice.com/wp-content/uploads/2009/11/twitter-tools-problem2.jpg

    Any suggestions will be appreciated. This used to work wonderfully, and has long since been one of my favorite plug-ins!

  5. mattborghi
    Member
    Posted 4 years ago #

    Hi Alex,

    First let me say I love your plugin and it's been great. However, I've started to have some issues of late. About two weeks ago Twitter started acting wonky and so I blamed Twitter and took a wait and see approach. Everything started working Ok again for about a week, no updates, no changes to the WP or TT.

    Yesterday, I upgraded to TT 2.0, and I noticed that my posts were posting without URLs and I have the bit.ly api and username setup. I tried upgrading WP, and that hasn't changed anything. I'm just at a loss as to how to proceed and wanted to share with my fellow users out there.

    Twitter Tools Version: x2.0
    WordPress Version: 2.8.6

  6. harisx
    Member
    Posted 4 years ago #

    Try to change JS Library to use fro JQuery to prototype. I try this method and now my tweet has been work and updated

  7. freshifreshy
    Member
    Posted 4 years ago #

    Twitter Tools Version: x2.0
    WordPress Version: 2.8.6

    Despite selecting that I want Twitter notified of my new posts, nothing is being posted on my Twitter account.

    Try to change JS Library to use fro JQuery to prototype.

    Tried this, but it didn't work.

    I know people are having various problems, but I was wondering if anyone has been having this problem and if they found a solution.

    Thanks

  8. carlnunes
    Member
    Posted 4 years ago #

    embarrassed to say but; switching the theme to default, adding sidebar widget, updating tweet options, and tweets. Switched back to my minimal theme; and Twitter Tools Now Updates. Yes!

  9. elforesto
    Member
    Posted 4 years ago #

    Twitter Tools Version: 2.0
    WordPress Version: 2.8.6
    Expected Behavior: I post to Twitter throughout the week with a weekly digest to be published on Saturday at 4PM.
    Observed Behavior: The digest never posts to my blog. I have already used the Reset Digest feature to attempt to resolve this.

    I've had this problem for going on a month now and would really like to find a resolution to it.

  10. maxwell_pink
    Member
    Posted 4 years ago #

    I tried shekharg's solution. It worked -- for one daily digest. :(

    This is frustrating.

  11. staze
    Member
    Posted 4 years ago #

    Been having issues with Twitter tools since upgrading to PHP 5.3. I get the following error:

    [Mon Jan 11 20:42:13 2010] [error] [client 10.0.2.1] PHP Warning:  fsockopen(): php_network_getaddresses: getaddrinfo failed: System error in /Library/WebServer/Documents/website/wp-includes/class-snoopy.php on line 1142
    [Mon Jan 11 20:42:13 2010] [error] [client 10.0.2.1] PHP Warning:  fsockopen(): unable to connect to twitter.com:80 (php_network_getaddresses: getaddrinfo failed: System error) in /Library/WebServer/Documents/website/wp-includes/class-snoopy.php on line 1142

    Anyone else using WP 2.9.1, PHP 5.3, and Twitter Tools 2.1.2? =/

    Thanks!

  12. maxwell_pink
    Member
    Posted 4 years ago #

    Well, since this issue has been going on for awhile, and no one can seem to find an answer, I'm giving TT the boot.

    I've been using Twitter Digest (supposedly based on Twitter Tools -- funny how IT works) in between attempts to fix TT. It suffers from a few hiccups, like occasionally posting the digest multiple times or not at all (the digest would be there, it just missed its scheduled posting time and has to be posted manually), and it means I will have to manually crosspost my blog links to Twitter but since I tweet more than I blog, this is a small price to pay IMHO.

  13. mimicvii
    Member
    Posted 4 years ago #

    I've also been having issues ever since upgrading TT to 2.1.2 (which I did shortly after upgrading WP to 2.9.1). I've tried all the suggested fixes, remove/reinstall TT (dropped the aktt_ rows from the wp_options as well as tried previous versions), deactivate/reactivate Akismet, changed themes. Nothing has worked so far. I mostly get "Sorry, login failed. Error message from Twitter: Rate limit exceeded. Clients may not make more than 150 requests per hour." when I test my login, but even when it succeeds, TT is not grabbing any tweets since 1/11.

    Just tested Twitter Digest and it works fine. I'll keep checking on TT as it has a preferred feature that Twitter Digest doesn't (i.e., non-digest tweet to post).

  14. davidkingsbury
    Member
    Posted 4 years ago #

    I'm experiencing a lack of updates on two different blogs, both running 2.9.1 and TT 2.1.2 on a server with PHP 5.2.4. One had been up and running for several years, with 4,000 items in the wp_ak_twitter table. The other site is brand new, with a clean install of WP and TT.

    Authentication to Twitter works fine - both in the admin settings test and when I publish a blog post. The issue I'm seeing is that when the scheduled pull from Twitter goes out every 10 minutes, it pulls one item, sets the tw_id to 2147483647 (the maximum value for a 32-bit signed integer, aka sign of the Twitpocalypse), then refuses to pull any new tweets after that.

    I've tried dumping the aktt settings from the options table, loading and unloading the plugin, etc., but when it happened on the new blog, it made me think it might be something with my installation of MySQL (or I guess PHP). I don't see any auto_increment fields that could be a factor, though. I've also looked through the plugin code, but nothing really jumped out at me...

  15. mimicvii
    Member
    Posted 4 years ago #

    I think davidkingsbury is on to something. The tw_id of my last entry is also 2147483647. If I delete that entry, TT will pull down one more, assign it that same ID and stops. My table only has 453 rows.

    My hosts MySQL version is 5.0.83, PHP version is 5.2.2.

  16. mimicvii
    Member
    Posted 4 years ago #

    The tw_id is not a number randomly generated by SQL or TT, it is the ID from Twitter which you would see in the url if you directly went to an individual tweet. The post of mine that keeps getting assigned that ID by TT does not use that ID from Twitter.

  17. wapcaplets
    Member
    Posted 4 years ago #

    For what it's worth, I'm also experiencing the issue where Tweet digests don't autocreate. It was working for me with WP2.9.1 and an earlier install of Twitter Tools. The bit.ly plugin works great, though, as does tweeting out new blog posts.

    Not to criticize the developer unduly (he provides this for free which is highly commendable) but I roll my eyes at the irony of him more-or-less calling us idiots yet then he plugs his WordPress support business at the end. Suggested dialogue for the future:

    "Wow, man. I'm sorry to hear that this plug-in isn't working for you. As I'm sure you can appreciate, it's tough to take into account all the variables that WordPress can throw at you. We created a support centre where you can pursue this further. Unlike the plug-in, it's not free but in order to have dedicated support we have to charge for it."

    You catch more flies with honey than vinegar. Just sayin'.

  18. jeffwithag
    Member
    Posted 4 years ago #

    Yep, unfortunately I'm one of those who it is not working for, not completely anyway. Post are not getting tweeted and Tweets are not getting put into digest.

    I liked the post to tweet function, as I then had twitter notify facebook. For the time being I guess I'll look into some direct relationship between wordpress post to facebook. But I'll check back on Twitter Tools from time to time to see if it's working again.

  19. cjwalsh
    Member
    Posted 4 years ago #

    This looks like a problem with json_decode. I put some logging code in the Twitter Tools code that does the tweet updates, and while the data returned from Twitter includes ID numbers like 8014259753, once these are decoded via the call to json_decode() they are all turned into 2147483647. As far as I can see this is happening within the native PHP implementation of json_decode in PHP v5.2.3 (tested with a v. simple PHP page), so perhaps this is now happening due to the changes in Twitter Tools v2.1, v2.1.1, and v2.1.2 which seem related to changing whether Services_JSON is called or not?

  20. cjwalsh
    Member
    Posted 4 years ago #

    Found a way to fix it by converting the ID numbers to strings before calling json_decode (thanks to this question & answers on stackoverflow.com). See below for edit to twitter-tools.php in /wp_content/plugins/twitter-tools:

    $data = $snoop->results;
    
    	// hash results to see if they're any different than the last update, if so, return
    	$hash = md5($data);
    	if ($hash == get_option('aktt_update_hash')) {
    		update_option('aktt_last_tweet_download', time());
    		update_option('aktt_doing_tweet_download', '0');
    		do_action('aktt_update_tweets');
    		return;
    	}
    
    	//CJW 2010-01-25: Fix problem with json_decode limiting the id values to PHP_INT_MAX
    	// Convert id numbers to strings, with thanks to http://stackoverflow.com/questions/1777382/php-jsondecode-on-a-32bit-server
    	$data = preg_replace('/"id":(\d+)/', '"id":"$1"', $data);
    
    	$tweets = json_decode($data);

    So now my tweets are being updated correctly, will need to wait till tonight to see if my daily digest post is created correctly. :)

  21. cjwalsh
    Member
    Posted 4 years ago #

    No daily digests yet, but the tweets in the sidebar are up to date now, and refresh correctly.

  22. davidkingsbury
    Member
    Posted 4 years ago #

    Thanks for the code, cjwalsh! That appears to fix my issues...

  23. mimicvii
    Member
    Posted 4 years ago #

    I don't use the digest, but cjwalsh's fix appears to be working for me as well. Thanks!

  24. Second
    Member
    Posted 4 years ago #

    @cjwalsh Your fix worked for us too! Thank you very much! I hope you'll forward your correction to Mr. King.

    I think what we (and subsequently Mr. King) is experiencing here is the end result of a total monopoly on Twitter integration in WordPress.

  25. cjwalsh
    Member
    Posted 4 years ago #

    The plugin has been updated to v2.2 to include this fix :)

    Still not sure why the digests haven't been working. Played around with it a bit and managed to manually get it to update for past dates, so now that it's back in sync maybe it will be OK going forward?

  26. metzbgsu
    Member
    Posted 4 years ago #

    TT was working fine for me until the update...now I haven't had a new tweet show up for 2 days. Anyone have any idea what would cause this?

  27. staze
    Member
    Posted 4 years ago #

    My install stopped working too. Previously PHP 5.3.0 broke TT 2.1.1, so I moved back to PHP 5.2.9. Now TT 2.2.1 is broken in PHP 5.2.9. I get the same errors as before: fsockopen(): unable to connect to twitter.com:80 (php_network_getaddresses: getaddrinfo failed: System error)

    Reading AK's website, the only thing I can think is this is due to a 64 vs. 32 bit issue since he hasn't tested these changes on a 32bit install of PHP (which I'm running). But who knows.

  28. Alex King
    Member
    Posted 4 years ago #

    Rough translation:

    Hi, this is your server. Unfortunately I can't connect to Twitter.com. This is either my fault because I'm not configured right, Twitter's fault because Twitter is down, or something like that. Please don't blame Alex, he can't be responsible for my ability to connect to Twitter.

  29. staze
    Member
    Posted 4 years ago #

    Alex,

    I'm sorry if that came across as "this is definitely your fault". I mean more than, it seems odd that I upgrade to PHP 5.3, it breaks 2.1.1 (and remained broken during all use of 5.3, which was for like a week). I downgrade to PHP 5.2.9 and it immediately starts working. I upgrade to TT 2.2.1, and it immediately breaks again with the same error as before, when the fixes in 2.2.x, from what I can tell, were related to the tw_id being treated as a string rather than number, and a 32bit PHP is going to have difficulty with numbers that large rather than strings.

    Could be circumstantial... I fully understand that as a Sys Admin, but your site admits that you haven't tested these changes on 32bit PHP. =/

    Though I'll certainly admit, the error seems to indicate an inability to connect to twitter, rather than an integer being too big for the PHP arch. But, it's an odd coincidence. =/

  30. staze
    Member
    Posted 4 years ago #

    Moved site to a 64-bit PHP install and TT now works. Again, could be coincidence, but... would be interesting to see if moving it back to 32-bit would break it again...

Topic Closed

This topic has been closed to new replies.

About this Topic