Skip to content

PHP Fatal error: Cannot redeclare class OAuthException in OAuth.php on line 8 #242

Description

@GoogleCodeExporter
If you use this library with OAuth included in PHP you get the following error:

PHP Fatal error:  Cannot redeclare class OAuthException in OAuth.php on line 8

Please wrap it like that:

if (!class_exists('OAuthException')) { 

    class OAuthException extends Exception {
          // pass
    }

}

Original issue reported on code.google.com by i...@soeren-mueller.com on 3 Nov 2013 at 12:40

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions