I have OAuth and Libraries modules enabled for some other dependencies and get this error + WSOD on page load after enabling Hybridauth:

Cannot redeclare class OAuthException in /my/path/sites/all/libraries/hybridauth/Hybrid/thirdparty/OAuth/OAuth.php on line 11

Can this module check, like some other modules do, for OAuth libraries, and if already installed use those?

Comments

vishun’s picture

In this instance it is the Hybridauth framework itself that is underneath the Hybridauth module that is working with OAuth and defining this class which means the available options are limited. Integration may be possible but seeing as the Hybridauth framework is developed as a standalone, it may require special patches to the framework to be made and maintained in unison with the drupal module.

rwohleb’s picture

Assigned: Unassigned » rwohleb
Status: Active » Postponed

I'll have to take a deeper look into this. The maintainer of the HybridAuth library has been really responsive to my patches. This might be something we can deal with upstream.

Out of curiosity, what are you using the oauth module for?

azin’s picture

Twitter Actions

duozersk’s picture

Status: Postponed » Closed (works as designed)

azin,

As we have just agreed with Robert (rwohleb) the 7.x-1.x branch is deprecated, please use the 7.x-2.x branch.

Anyway, there is no way to fix this from the Drupal side - it should be fixed on the HybridAuth library side, please post it to their issue tracker (or search there to see some similar issues).

Thanks
AndyB