Scenario:
I upgrade one of my wordpress plugin “WP to Twitter” to latest version (Version 2.2.0) for the OAuth and found that it doesn’t work with my hosting plan (hostgator).
When I click on the “Connect to Twitter” and there is a fatal error “Fatal error: Class ‘OAuthSignatureMethod_HMAC_SHA1′ not found.”
After performing some debugging and found that it is due to OAuth enabled in my hostgator PHP.
In hostgator, they are using PHP 5.2.14 with OAuth enabled. This is the main reason causing the problem.
Inside the PHP OAuth, it contain of a set of classes (OAuthException is one of them) and “WP to Twitter” plugin is using this class to perform some checking and causing the problem.
Solution:
Here is the modification that I done for my wordpress plugin.
















