Hi,

I am testing this module to use Linkedin authentication and it works very well.

But when I enable Twitter module (https://drupal.org/project/twitter) to post tweets, it stop to working.

After being redirect to Linkedin auth and authorizing it, I am redirected back to my site with a blank page:
/hybridauth/window/LinkedIn?destination=user/me/edit&destination_error=user/login%3Fdestionation%3D/user/me/edit

When I disable Twitter module Linkedin authentication starts to work again.

If you need more information, please let me know.

Thanks

Comments

duozersk’s picture

Assigned: Unassigned » duozersk
Category: Bug report » Support request
Status: Active » Closed (won't fix)

iuato,

The HybridAuth library is not compatible with the OAuth module - https://drupal.org/project/oauth - that is required for the Twitter module to work.

Thanks
AndyB

duozersk’s picture

Component: User interface » HybridAuth library
Status: Closed (won't fix) » Closed (fixed)

This issue should be fixed by https://github.com/hybridauth/hybridauth/pull/244 - it is already included in the HybridAuth library release v2.2.2

AndyB

bdupls’s picture

I have the HybridAuth library release v2.2.2 and enabled HybridAuth and OAuth module on D7 commons site. I still get errors.
Fatal error: require_once() [function.require-once]: Cannot redeclare class oauthconsumer in /xxx/includes/module.inc on line 330.
Any suggestions?

duozersk’s picture

Status: Closed (fixed) » Active

Looks like I would need to check it myself...

bdupls’s picture

Sorry as in see my site? If so how can I share privately. Just to update I got new keys and get this error. Googling this error comes back to a similar trail. HybridAuth library.
Fatal error: Cannot redeclare class OAuthSignatureMethod_HMAC_SHA1 in /xxx/public_html/profiles/commons/modules/contrib/oauth/lib/OAuth.php on line 144

a1mpreza’s picture

I am having the same issue.. when logging in with twitter Fatal error: Cannot redeclare class OAuthSignatureMethod_HMAC_SHA1 in profiles/commons/modules/contrib/oauth/lib/OAuth.php on line 144

bdupls’s picture

As an update I have disabled OAuth and Twitter. I can register using Twitter then logout and log back in again. It works only when I changed the Twitter call back to Enable Callback Locking.
However, if I login through another browser to the same Twitter account I still get this error.
Fatal error: Class 'Hybrid_Exception' not found in /home/xxxx/public_html/sites/all/libraries/hybridauth/Hybrid/Endpoint.php on line 213
I just hope people don't change browsers mid stream but it could happen. Why?

mhamed’s picture

here is the same with oauth_common 7.3.2
hybridauth 7.2.14
hybridauth library 2.5.1
drupal 7.41
tried with past version the same issue changes just the number of the line
tried to throw controls on the class that gave the error errors but it goes to the other class:
then it gave other errors:
the first it gave :
Fatal error: Cannot redeclare class OAuthSignatureMethod_HMAC_SHA1 in /.../public_html/sites/all/modules/contrib/oauth/lib/OAuth.php on line 144
then
Fatal error: Cannot redeclare class OAuthSignatureMethod_HMAC_SHA1 in /.../public_html/sites/all/modules/contrib/oauth/lib/OAuth.php on line 146
then
Fatal error: Cannot redeclare class OAuthSignatureMethod_HMAC_SHA1 in /.../public_html/sites/all/modules/contrib/oauth/lib/OAuth.php on line 180
can not solve the conflict since I ' m using twitter posts