Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
duozerskiuato,
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
Comment #2
duozerskThis 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
Comment #3
bdupls CreditAttribution: bdupls commentedI 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?
Comment #4
duozerskLooks like I would need to check it myself...
Comment #5
bdupls CreditAttribution: bdupls commentedSorry 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
Comment #6
a1mpreza CreditAttribution: a1mpreza commentedI 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
Comment #7
bdupls CreditAttribution: bdupls commentedAs 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?
Comment #8
mhamed CreditAttribution: mhamed commentedhere 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