Skip to content

PHP OAuthException class conflict #2

@sglessard

Description

@sglessard

Hello,

I've enabled PHP OAuth support on my server, for now the only issue is about OAuthException :

Fatal error: Cannot redeclare class OAuthException in /path/to/website/plugins/sfDoctrineOAuthPlugin/lib/base/vendor/oauth/OAuth.php

I had to add a condition in the chok's OAuth class

if (!class_exists('OAuthException')) {
    class OAuthException extends Exception {
    // [...]
}

http://www.php.net/manual/en/class.oauth.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions