Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Aug 14, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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

@exmedia
Copy link

exmedia commented Sep 3, 2019

Thank you for sharing

@ssekazinga
Copy link

Thanks for sharing. what causes it though

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

No branches or pull requests

3 participants