Sorry, the forums are locked while I handle some maintenance.

 
This Forum is Currently Locked – Access is Read Only
You must be logged in to post Login


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

"EASY" FIXES for "Could not connect to Twitter"

UserPost

1:28 pm
December 30, 2009


chickenthistle

Member

posts 4

If you have the plugin on a shared hosting server and experience lots of times / issues where the feed does not up date because it can not connect to Twitter… but twitter isn't throwing the failwhale…  Likely you are being hit by the global Twitter API rate_limit.  You can test this if you have command line access on the server that hosts your instance of wordpress by running the following command:

 curl http://twitter.com/account/rate_limit_status.xml

If you see <remaining-hits type="integer">0</remaining-hits> in the returned XML – you are dead – no more UNAUTHENTICATED requests can come from that IP until the hourly rest happend and then only 150 before the IP is locked out again.  It might be nice for a button to be included in the plugin that rund this command and displays the XML for troubleshooting purposes by the end user.

Assuming the above response IS 0 – which is rather likely becuase this plugin is very rock solid – at this point you have a couple of options:

1) Bug the dev team to include the option to have the widgets authenticate as Twitter user for the pull – then you get 150 for that user – and with the default cache of 5 min – a widget will only use 30 of your 150 in an hour – leaving you plenty of "credit" to run your twitter clients all day long.

2) Bug the dev team to make the cache time "configurable" in the widget itself – like a minimum of 5 but up to 60 minutes – that way you should alwyas have "somthing" in the cache.

3) Request the servers IP to be added to a Twitter whitelist for rate limiting – so everyone on the hosted server can play – play – play without fear of being blocked.  This one takes time – not all providers will do it – Twitter won't accept all IP's…  it's just not a super viable solution…

11:51 pm
January 4, 2010


navman379-lists@yahoo.com

Member

posts 3

I use fatcow.com, which does not have command line access.   Any other fixes?  Would love to see this work for me and others who might be shy to post Smile   Thanks in advance.

7:07 am
January 5, 2010


chickenthistle

Member

posts 4

Well – really – all command line access will do is let you easily run that command to prove to yourself that you and others on the server are eating all the allotted API requests from Twitter…  it doesn't "really" fix anything. (you could code a php page really quickly to get that url for you and toss it on your hosted server – it would do the same thing)

Unless you can get the server IP from which these API calls are originating from whitelisted by Twitter…  then you are, mostly, out of options.

Option #2 above is something you can do now – just not through the GUI – You CAN edit the plugin php file and increase the page cache from 300 to 600 or 900 seconds…  Your tweets update less often in the Wordpress widget – but you also use fewer API calls…  In theory (depending on how fast the hosting server is chewing through the API calls) if you set the value to 3600 (cache for 1 hour) – you would show tweets for an hour in the widget, then it would make a request until it could refresh the cache and then hold it for another hour…  the risk is – right at the end of your hour cache the API limit is reached on Twitter and you have to wait until the limit is reset…  same as now.

Really what the plugin needs is the ability to make AUTHENTICATED requests…  but – that's a double edge sword as it will use up some of your 150 personals you get and then leave you without the ability to tweet (well – less tweetability)…  and if you run something like TweetDeck – then you see how fast your allotment can go down…

For you – best approach – ask your hosting provider to open a twitter whitelist request forthe IP's of their server farm…  then cross your fingers.

11:04 am
January 5, 2010


AaronCampbell

Admin

posts 242

Authentication is definitely on the TODO list.  Unfortunately I haven't had a lot of time to put into this recently.  I'm looking for some other developers to join in and help, but even that takes time to find people and set up the access, etc.

If anyone out there has time to make patches, I'll happily accept and commit.

Here is the current TODO list for Twitter Widget Pro (copy and pasted straight from Basecamp):

  • Allow for authentication
  • Let authenticated users show lists.
  • Allow the cache time to be configurable (and maybe change to using transients?)
  • Let authenticated users show their friends feed.
  • Update the included JSON class to match the new changes in WP trunk

Upset at my slow responses recently? Please read my explanation.

12:32 pm
January 5, 2010


chickenthistle

Member

posts 4

There you have it – from a terrific developer – the future path…  which will certainly help out a lot of the folks who post here with the "Can not connect" issue.

7:51 pm
January 5, 2010


navman379-lists@yahoo.com

Member

posts 3

I'm not technically savvy enough to do any of the above… I just want my twitter feed to show up on my page :)  This is the best plugin so far, but none of the other reputable ones have worked either (I've tried Wickett Twitter Widget also).   If you could fix this problem for many of us, that would be a huge, huge help :)  Thanks for all your efforts so far… we really do appreciate it! 

9:39 pm
January 5, 2010


rc@damariscarbaugh.com

New Member

posts 2

navman379-lists@yahoo.com said:I'm not technically savvy enough to do any of the above… I just want my twitter feed to show up on my page :)  This is the best plugin so far, but none of the other reputable ones have worked either (I've tried Wickett Twitter Widget also).   If you could fix this problem for many of us, that would be a huge, huge help :)  Thanks for all your efforts so far… we really do appreciate it! 


I'm not savvy enough to understand all of that, either.  However, I did get the code from twitter.com for THEIR widget and put it into my sidebar on my site.  It has been "up" 100% of the time.  You can change the colors and size to match your look, too.  

It is not as flexible as Twitter Widget Pro, and it does not act like a WordPress widget, in that it cannot be placed in a specific order with the other widgets.  However, if you are satisfied with it being either on the top or bottom of your sidebar, you can place the code in your sidebar before or after the "dynamic" call to the widget engine.  BTW, it wants to cover up my dropdown menus, so I moved the page menu bar topics so that there are no dropdown menus above the sidebar.

Have a look here: http://www.damariscarbaugh.com

Sorry, Aaron, but while you are sorting all of this out I am going to use the widget from twitter.com.  It is less elegant, but more reliable.  Godspeed at what seems to be a gargantuan task.

rcarbaugh


About the Xavisys Forum

Forum Timezone: America/Phoenix

Most Users Ever Online: 50

Currently Online:
1 Guest

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 3
Forums: 26
Topics: 410
Posts: 1034

Membership:

There are 792 Members
There has been 1 Guest

There are 2 Admins
There is 1 Moderator

Top Posters:

lkmweb@me.com – 9
Brayne – 8
Xarzu – 8
Iain – 8
Aaron Fineman – 8
checox7@yahoo.com – 6

Recent New Members: puckles@gmail.com, kwelx@kwelx.com, kaufmanauthor@gmail.com, meesfrenkelfrank@hotmail.com, heather@holmpage.com, mark@avantgarde-group.nl

Administrators: AaronCampbell (242 Posts), Imported Questions (1 Post)

Moderators: nancy@mequoda.com (0 Posts)



 
Stop Censorship