Require OAuth.php only if not exist #560

merged 1 commit into from Oct 12, 2015


None yet

2 participants

kgaut commented Oct 5, 2015

I had problems with the following combination :

Drupal + Drupal HybridAuth + Drupal OAuth + HybridAuth because OAuthConsumer class is already provided within Drupal OAuth.

=> Callback from linkedin and twitter lead to this error message :

PHP Fatal error:  Cannot redeclare class OAuthConsumer in /var/www/sites/domain/sites/all/modules/oauth/lib/OAuth.php on line 20

@see :

@StorytellerCZ StorytellerCZ added this to the 2.x milestone Oct 12, 2015

Not a HybridAuth issue since the issue is caused by incompatibility with another Drupal module, but since this could help others as well I'll allow this in.

@StorytellerCZ StorytellerCZ merged commit fa9b248 into hybridauth:master Oct 12, 2015

1 check passed

Scrutinizer 1 updated code elements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment