WordPress.org

Support

Support » Plugins and Hacks » Rotating Tweets (Twitter widget and shortcode) » [Resolved] [Plugin: Rotating Tweets widget and shortcode] Problem retrieving data from Twitter

[Resolved] [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/

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author Martin Tod

    @mpntod

    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

    Hi Martin,

    Twitter username is the same as my WordPress username: mikechalmers

    thanks for your quick response!

    MC

    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

    @mpntod

    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/ – 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

    @mpntod

    I’ve uploaded an updated version of rotating tweets to 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

    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

    @mpntod

    That’s odd. Will have another look at the code. Do you see anything more in the html?

    Martin

    Plugin Author Martin Tod

    @mpntod

    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

    <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

    @mpntod

    Although it should have displayed as a rotating tweet… 🙁

    Martin

    Plugin Author Martin Tod

    @mpntod

    New version that should give richer diagnostics.

    Martin

    Plugin Author Martin Tod

    @mpntod

    <-- 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

    @mpntod

    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

    @mpntod

    Have uploaded a corrected version of the plug-in to 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)
  • The topic ‘[Resolved] [Plugin: Rotating Tweets widget and shortcode] Problem retrieving data from Twitter’ is closed to new replies.
Skip to toolbar