WordPress.org

Support

Support » Plugins and Hacks » Live Blogging » [Plugin: Live Blogging] Twitter oAuth is not conditional

[Plugin: Live Blogging] Twitter oAuth is not conditional

  • 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m pulling a little back on this one. I just realised that you allready do condition the class !class_exists('TwitterOAuth').

    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…

    Plugin Author chrisnorthwood

    @chrisnorthwood

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Live Blogging] Twitter oAuth is not conditional’ is closed to new replies.
Skip to toolbar