Rotating Tweets uses the standard WordPress wp_remote_request() call and this can sometimes go wrong.
One way of fixing this is to use the Core Control plug-in to check the different ‘transports’ that WordPress uses to collect data from other sites – and switch off the one that doesn’t work.
Alternatively, try removing the commenting from one of last 5 lines of the plug-in – probably the cURL one!
// add_filter('use_http_extension_transport', 'rotatingtweets_block_transport');
// add_filter('use_curl_transport', 'rotatingtweets_block_transport');
// add_filter('use_streams_transport', 'rotatingtweets_block_transport');
// add_filter('use_fopen_transport', 'rotatingtweets_block_transport');
// add_filter('use_fsockopen_transport', 'rotatingtweets_block_transport');
i.e. have
add_filter('use_curl_transport', 'rotatingtweets_block_transport');
as the last line of the plug-in.
A second option (that you might want to try first) is to set Verify SSL connection to Twitter to No in the Connection Settings section of the Rotating Tweets settings page.
The only reason I suggest this is that Kebo Twitter feed also appears to use wp_remote_request() – although it gets its tweets via another site rather than via Twitter directly.
Wow firstly thanks for the quick reply.
I have set the SSL to no still no joy I have then edited the plugin
register_deactivation_hook( __FILE__, ‘rotatingtweets_deactivate’ );
register_uninstall_hook( __FILE__, ‘rotatingtweets_uninstall’ );
// Filters that can be used to adjust transports – if you have problems with connecting to Twitter, try commenting in one of the following lines
// From a brilliant post by Sam Wood http://ww.wp.xz.cn/support/topic/warning-curl_exec-has-been-disabled?replies=6#post-920787
function rotatingtweets_block_transport() { return false; }
// add_filter(‘use_http_extension_transport’, ‘rotatingtweets_block_transport’);
add_filter(‘use_curl_transport’, ‘rotatingtweets_block_transport’);
// add_filter(‘use_streams_transport’, ‘rotatingtweets_block_transport’);
// add_filter(‘use_fopen_transport’, ‘rotatingtweets_block_transport’);
// add_filter(‘use_fsockopen_transport’, ‘rotatingtweets_block_transport’);
?>
again without any success?
The problem appears to be that your server isn’t finding Twitter (although it is finding the site used by Kebo Twitter) – which would normally indicate a server problem of some kind.
A couple of thoughts:
- Try ‘testing your transports’ with the Core Control plug-in.
- Try installing a Rotating Tweets widget or short-code. It should give you more diagnostics in the HTML.
- Try setting WP_DEBUG to true in your wp-settings.php file. (I should warn you that this can generate a lot of error messages from templates and plug-ins)
- Try switching off each of the other ‘transports’ in turn.
None of these will necessarily solve the problem – but they may indicate a way forward to finding a solution.
In the core control plugin I enable HTTP Access Module 1.0
On the external http access tab i get
Manage Transports
Transport Status Actions
cURL Not Available
PHP Streams Not Available
PHP fsockopen() Not Available
shortcode gives: Problem retrieving data from Twitter
Wordpress error code: http_failure – There are no HTTP transports available which can complete the requested request.
DO i need to install cURL?? – scratch that i now know its preintsalled in wamp
It appears that WordPress can’t see any external data.
Is cURL enabled in your php.ini file?
I saw quite a lot of info about this via Google, but don’t have a WAMP server so can’t test it.
I give up!
I have followed numerous different methods
http://forum.wampserver.com/read.php?2,85716,119831
this being the most comprehensive – at one point i thought i had killed my apache install as it wouldnt start after installing the add ins from wamp site. (that was a very scary)
I have installed on a seperate machine and tried everything listed and really cannot get curl to work on my setup. I believe a lot of people ended up setting up with single installs of each product.
Can I run this without curl?
Had a breakthrough and phpinfo shows curl enabled!
Managed to get it working THANK YOU!!!!!
you have been brilliant I cannot say thank you enough =)
Enabling cURL in WAMP/php was also the answer for my issue! Very glad to find this thread here because that was not trivial to debug!
Thank you both 🙂