WordPress.org

Ready to get started?Download WordPress

Forums

Rotating Tweets (Twitter widget and shortcode)
[resolved] [Plugin: Rotating Tweets widget and shortcode] Problem retrieving data from Twitter (22 posts)

  1. mikechalmers
    Member
    Posted 2 years ago #

    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/

  2. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    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

  3. mikechalmers
    Member
    Posted 2 years ago #

    Hi Martin,

    Twitter username is the same as my WordPress username: mikechalmers

    thanks for your quick response!

    MC

  4. mikechalmers
    Member
    Posted 2 years ago #

    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

  5. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    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!

  6. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    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

  7. mikechalmers
    Member
    Posted 2 years ago #

    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

  8. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

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

    Martin

  9. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    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

  10. mikechalmers
    Member
    Posted 2 years ago #

    <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

  11. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    Although it should have displayed as a rotating tweet... :-(

    Martin

  12. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    New version that should give richer diagnostics.

    Martin

  13. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

  14. mikechalmers
    Member
    Posted 2 years ago #

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

  15. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    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

  16. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    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

  17. mikechalmers
    Member
    Posted 2 years ago #

    Martin,

    I've only just gained access to the 'live' site, but not yet had the chance to upload.

    HOWEVER, when I was posting to you before, I was not at home office and now that I am it works fine - offline, in MAMP.

    There's been some issues with things before at the network I was on and, unless you have changed much of the coding, the plugin probably worked all along with the network being the real issue.

    Thanks again, it's great to see it working. Sorry for the hassle, but I hope it maybe added a little something to the plugin that will help someone else.

    All the best

    Mike

  18. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    Mike,

    It was very helpful! It required me to sort out the error reporting in the plug-in. So thank you! :-)

    Martin

  19. aliusman
    Member
    Posted 1 year ago #

    Hello Martin,

    Thanks for writing this great plugin. However I am having some issue.

    I have 2 separate installations of WP on the same domain. The plugin work perfectly on one site while giving "Problem retrieving data from Twitter" error on the other one. Here are the links for working and non-working versions.

    Working Great: http://mydealstuff.com/beaustralia/ ( You can see the outcome at the bottom just before the footer )

    Non Working: http://www.mydealstuff.com/golfclub/ ( You can see the outcome at the bottom just before the footer )

    I really appreciate your help.

    Thanks

  20. Martin Tod
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    There's a solution on the FAQ page that might help.

    Try installing the Core Control plug-in and disabling cURL.

    Martin

  21. aliusman
    Member
    Posted 1 year ago #

    Hi Martin,

    Thanks for your prompt response. I have already tried Core Control Plugin and disabled the cURL with no luck. However, I will give it some more tries.

    Thanks you so much

  22. Martin Tod
    Member
    Plugin Author

    Posted 1 year ago #

    Have you tried changing the Rotating Tweets SSL settings?

    I notice that it has worked (at least briefly) at some point in the past because it has picked up some tweets and stored them in the cache. So you clearly did something at some point that worked! :-)

    I notice that your pinterest plug-in has the same problem, which, assuming both installations are on the same server, does suggest a WordPress or server set-up problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.