Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

[Twitter Addon] Could not be enabled because it generated a fatal error*

edited February 2011 in Vanilla 2.0 - 2.8
Fatal error: Cannot redeclare class OAuthException in /[public root directory snipped for safety]/library/vendors/oauth/OAuth.php on line 8
Happens on both Chrome Stable and Internet Explorer 9 Beta
PHP 5.2.15, MySQL 5.1.52

Comments

  • Options

    I’m not sure the root of this problem, but a quick-and-dirty fix would be to make the following change:

    library/vendors/oauth/OAuth.php

    if (!class_exists('OAuthException')) {
      class OAuthException extends Exception {
        // pass
      }
    }
    
  • Options

    yes that is quick and definitely dirty, don't do it. This is merely asking the program not to check but will cause more problems.

Sign In or Register to comment.