Title: Error: Cannot redeclare class TwitterOAuth
Last modified: August 21, 2016

---

# Error: Cannot redeclare class TwitterOAuth

 *  Resolved [Kelli Sussman](https://wordpress.org/support/users/kelli29/)
 * (@kelli29)
 * [13 years ago](https://wordpress.org/support/topic/error-cannot-redeclare-class-twitteroauth/)
 * I have two instances of the Simple Twitter Tweets widget displaying from two 
   different users on my homepage. Most of the time, both load fine. But about 10%
   of the time I get this error message for the second widget:
 * Fatal error: Cannot redeclare class TwitterOAuth in /home2/volufire/public_html/
   wp-content/plugins/simple-twitter-tweets/twitteroauth/twitteroauth.php on line
   15
 * I’ve looked at all my other plugins loaded and don’t think any others are loading
   the OAuth — is it possible that I can’t use two instances of this widget on one
   page? here is the site:
    [http://www.volunteerfirefighter-or.org/](http://www.volunteerfirefighter-or.org/)
 * Thank you for your help!
 * [http://wordpress.org/extend/plugins/simple-twitter-tweets/](http://wordpress.org/extend/plugins/simple-twitter-tweets/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Michel Vertige](https://wordpress.org/support/users/michel-vertige/)
 * (@michel-vertige)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-cannot-redeclare-class-twitteroauth/#post-3948147)
 * I had the same problem. Its because some other plugin also uses the Twitter OAuth
   API, and uses the same class to deal with it.
    I could fix it by editing the `
   simple-twitter-tweets.php` file, on line 408, replace this :
 *     ```
       include 'twitteroauth/twitteroauth.php';
       ```
   
 * with
 *     ```
       if ( ! class_exists('TwitterOAuth'))
           include 'twitteroauth/twitteroauth.php';
       ```
   
 * This should be included in a future update of the plugin…
    Dear plugin developer,
   could you merge this fix into the main branch ?
 *  [notjoeflynn](https://wordpress.org/support/users/notjoeflynn/)
 * (@notjoeflynn)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-cannot-redeclare-class-twitteroauth/#post-3948148)
 * I’m also having this issue, though I’m disinclined to hack on a plugin for fear
   of it breaking on update. Are there any plans to resolve this soon?
 *  Plugin Author [Planet Interactive](https://wordpress.org/support/users/planet-interactive/)
 * (@planet-interactive)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-cannot-redeclare-class-twitteroauth/#post-3948149)
 * Michel, Good catch – minor oversight on our part, thanks for this it’s now on
   the list and will be in next update.
 * notjoeflynn go for it – it will be in the next update as documented above.
 * Thanks again
 *  [Michel Vertige](https://wordpress.org/support/users/michel-vertige/)
 * (@michel-vertige)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-cannot-redeclare-class-twitteroauth/#post-3948150)
 * Great !
 * Thanks for your reactivity.
 *  [notjoeflynn](https://wordpress.org/support/users/notjoeflynn/)
 * (@notjoeflynn)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-cannot-redeclare-class-twitteroauth/#post-3948151)
 * Thanks for the quick response. Y’all rule!
 *  Plugin Author [Planet Interactive](https://wordpress.org/support/users/planet-interactive/)
 * (@planet-interactive)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-cannot-redeclare-class-twitteroauth/#post-3948167)
 * Now in 3.0

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Error: Cannot redeclare class TwitterOAuth’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-twitter-tweets_595b61.svg)
 * [Simple Twitter Tweets](https://wordpress.org/plugins/simple-twitter-tweets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-twitter-tweets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-twitter-tweets/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-twitter-tweets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-twitter-tweets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-twitter-tweets/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [Planet Interactive](https://wordpress.org/support/users/planet-interactive/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/error-cannot-redeclare-class-twitteroauth/#post-3948167)
 * Status: resolved