Title: [Plugin: Rotating Tweets widget and shortcode] Problem retrieving data from Twitter
Last modified: August 20, 2016

---

# [Plugin: Rotating Tweets widget and shortcode] Problem retrieving data from Twitter

 *  Resolved [mikechalmers](https://wordpress.org/support/users/mikechalmers/)
 * (@mikechalmers)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/)
 * Hi there, thanks for this plugin – it’s exactly what I need. I’ve installed the
   widget version and receive the following error (the username is correct):
 * Problem retrieving data from Twitter.
 * Please check the Twitter name used in the settings.
 * Tried it a few times – I’m using MAMP so it’s not on the internet yet – but haven’t
   had this issue in the past with twitter calls, so not sure.
 * Cheers
 * MC
 * [http://wordpress.org/extend/plugins/rotatingtweets/](http://wordpress.org/extend/plugins/rotatingtweets/)

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/page/2/?output_format=md)

 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/#post-2907923)
 * That doesn’t sound good. The actual call to Twitter is made using the standard
   WordPress function so I’m not quite sure how this might happen.
 * Can you let me know the user name so I can try to replicate/understand the problem
 * Best wishes
 * Martin
 *  Thread Starter [mikechalmers](https://wordpress.org/support/users/mikechalmers/)
 * (@mikechalmers)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/#post-2907940)
 * Hi Martin,
 * Twitter username is the same as my WordPress username: mikechalmers
 * thanks for your quick response!
 * MC
 *  Thread Starter [mikechalmers](https://wordpress.org/support/users/mikechalmers/)
 * (@mikechalmers)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/#post-2907943)
 * Martin,
 * I’ve also tried with different usernames – should have mentioned.
 * I don’t have the username that will actually be used by the site at this point–
   it will launch with website, but wanted to get an example twitter working…
 * Cheers
 * MC
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/#post-2908034)
 * I’ve somewhat rashly put your Twitter feed (temporarily)in as a widget at [http://www.martintod.org.uk/2012/05/29/new-twitter-plugin-to-show-tweets-in-rotation/](http://www.martintod.org.uk/2012/05/29/new-twitter-plugin-to-show-tweets-in-rotation/)–
   which is probably very rash – and it seems to be working.
 * … which suggests it may be an argument between WordPress’s wp_remote_request()
   function and MAMP …
 * Let me Google around and see if I can find an answer.
 * Alternatively, I’ll see if I can find a way of making it serve up some more useful
   diagnostics!
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/#post-2908064)
 * I’ve uploaded an updated version of rotating tweets to [http://downloads.wordpress.org/plugin/rotatingtweets.zip](http://downloads.wordpress.org/plugin/rotatingtweets.zip)
 * I’m afraid it probably won’t immediately solve the connectivity problem, but 
   should give some more useful diagnostics. Could you let me know what it says?
   🙂
 * Best wishes,
 * Martin
 *  Thread Starter [mikechalmers](https://wordpress.org/support/users/mikechalmers/)
 * (@mikechalmers)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/#post-2908071)
 * Hi Martin, thanks for this-
 * Now I get less info: “Problem retrieving data from Twitter.”
 * It doesn’t rotate between that and “please check username…”
 * I’m confident it will work when online, but the client is having hosting issues
   so I have to wait – and I don’t have a live wordpress install to play about with
   at the moment – so it would be easier to fix this up offline, but not essential.
 * Cheers
 * MC
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/#post-2908072)
 * That’s odd. Will have another look at the code. Do you see anything more in the
   html?
 * Martin
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/#post-2908073)
 * Trying to upload an updated version with more diagnostics, but unfortunately,
   neither 3G nor cafe wifi are playing ball! Will try again this evening in the
   hotel!
 * Martin
 *  Thread Starter [mikechalmers](https://wordpress.org/support/users/mikechalmers/)
 * (@mikechalmers)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/#post-2908074)
 *     ```
       <div class='rotatingtweets' id='rotatingtweets_4000_500d1f3ec10a4'>
       	<div class = 'rotatingtweet'><p class='rtw_main'>Problem retrieving data from Twitter.</p></div>
       	<div class = 'rotatingtweet' style='display:none'><p class='rtw_main'>Wordpress error message: couldn't connect to host.</p></div>
       	<div class = 'rotatingtweet' style='display:none'><p class='rtw_main'>Please check the Twitter name used in the settings.</p></div>
       </div>
       ```
   
 * Yes, more info in the html – display: none is there, so that’s why we weren’t
   seeing it on the page.
 * No problem with tonight, thanks again.
 * MC
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/#post-2908075)
 * Although it should have displayed as a rotating tweet… 🙁
 * Martin
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/#post-2908083)
 * New version that should give richer diagnostics.
 * Martin
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/#post-2908084)
 * Does [http://stackoverflow.com/questions/1917850/wp-http-error-couldnt-connect-to-host](http://stackoverflow.com/questions/1917850/wp-http-error-couldnt-connect-to-host)
   help?
 * Martin
 *  Thread Starter [mikechalmers](https://wordpress.org/support/users/mikechalmers/)
 * (@mikechalmers)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/#post-2908093)
 *     ```
       <-- WP_Error Object
       (
           [errors] => Array
               (
                   [http_request_failed] => Array
                       (
                           [0] => couldn't connect to host
                       )
   
               )
   
           [error_data] => Array
               (
               )
   
       )
        -->              Twitter 0.48.2
       <div class='rotatingtweets' id='rotatingtweets_4000_500fe78a3f827'>
       	<div class = 'rotatingtweet'><p class='rtw_main'>Problem retrieving data from Twitter.</p></div>
       	<div class = 'rotatingtweet' style='display:none'><p class='rtw_main'>Wordpress error message: connect() timed out!.</p></div>
       	<div class = 'rotatingtweet' style='display:none'><p class='rtw_main'>Please check the Twitter name used in the settings.</p></div>
       </div>
       ```
   
 * Martin,
 * I’m sure the proxy settings are to blame, but I can’t get it to work from the
   forums posts you linked.
 * Above is the I get now – not sure the WP Error Object code is meant to appear(
   before widget title) but that’s what I get.
 * Don’t worry about fixing it as I can implement this when the site goes active
   and let you know how it goes.
 * You’ve been a big help
 * MC
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/#post-2908094)
 * I spy a missing exclamation mark!
 * Will probably drop this from the code anyway since it doesn’t seem to add much.
 * Many thanks for your patience on this!
 * Martin
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/#post-2908097)
 * Have uploaded a corrected version of the plug-in to [http://downloads.wordpress.org/plugin/rotatingtweets.zip](http://downloads.wordpress.org/plugin/rotatingtweets.zip)–
   which will get rid of the error object printing out (which was not intended).
 * Let me know if there are any problems with the live version of the site!
 * Best wishes,
 * Martin

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/page/2/?output_format=md)

The topic ‘[Plugin: Rotating Tweets widget and shortcode] Problem retrieving data
from Twitter’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rotatingtweets.svg)
 * [Rotating Tweets (Twitter widget and shortcode)](https://wordpress.org/plugins/rotatingtweets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rotatingtweets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rotatingtweets/)
 * [Active Topics](https://wordpress.org/support/plugin/rotatingtweets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rotatingtweets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rotatingtweets/reviews/)

 * 21 replies
 * 3 participants
 * Last reply from: [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-rotating-tweets-widget-and-shortcode-problem-retrieving-data-from-twitter/page/2/#post-2908189)
 * Status: resolved