Oauth Issues with Twitter Tools

I use the very excellent Twitter Tools plugin to automate tweets from posts and the such. However the recent changes to the Twitter API and the resulting update from Crowdfavorite caused a few issues for me.

Firstly, after entering my API application data and then connecting to the Twitter via the Twitter Tools admin page, I would just get a blank screen. The API data was saved when I went back to the admin screen, but posts weren’t auto tweeting as expected – so there was a definite problem somewhere.

My server error logs showed the following, pointing at either something with Twitter Tools or the server setup:

Call to undefined function curl_init() in /home/.../wp-content/plugins/twitter-tools/twitteroauth.php on line 201, referer: .../options-general.php?page=twitter-tools.php

A bit of searching on the net and it appears that the cURL library is not installed by default with PHP5. Thus the Oauth module was not available and the plugin could not establish a connection.

To get this fixed, it just involved installing the PHP5 module and restarting Apache.

sudo apt-get install php5-curl
sudo /etc/init.d/apache2 restart

I tried validating the API data again through the admin screen and it made a successful connection and then able to set the options as I originally expected.

Being on a VPS allowed me to fix this quickly but if you run into the same issue and are on shared hosting, check with your hosting provider to get this fixed.

8 thoughts on “Oauth Issues with Twitter Tools

  1. Pingback: Keine Besserung in Sicht mit Twitter Tools | Svens Blog

  2. Thanks for the guide. i got it working by installing php5-curl like you said. Luckily I use a VPS so it was as simple as SSHing in with Putty.

    Thanks!

  3. Pingback: Twitter wieder online « Fachschaft ET/IT/C-MD

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>