WordPress.org

Forums

Live Blogging
Twitter oAuth is not conditional (4 posts)

  1. Michael Henke
    Member
    Posted 4 years ago #

    Fatal error: Cannot redeclare class OAuthSignatureMethod_HMAC_SHA1 in [...]/htdocs/wp-content/plugins/live-blogging/twitteroauth/OAuth.php on line 118

    Would you please condition your oAuth integration. Just make sure that the twitter oAuth class doesn't exists in memory yet and only then include the file. I have multiple plugins installed using twitter oAuth class and they work fine alongside each other, your's not.

  2. Michael Henke
    Member
    Posted 4 years ago #

    I'm pulling a little back on this one. I just realised that you allready do condition the class !class_exists('TwitterOAuth').

  3. Michael Henke
    Member
    Posted 4 years ago #

    I changed twitteroauth.php from

    if (!class_exists('OAuthException'))
    {
      require_once('OAuth.php');
    }

    to

    if (!class_exists('OAuthSignatureMethod_HMAC_SHA1'))
    {
      require_once('OAuth.php');
    }

    Now it activates well...

  4. chrisnorthwood
    Member
    Plugin Author

    Posted 4 years ago #

    I guess there's another plugin that perhaps is deploying a different library, but uses some of the same class names? Bit odd that OAuthException won't be defined.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Live Blogging
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic