On admin/user/user I get

Fatal error: Call to undefined function oauth_common_authorization_contexts() in /opt/local/apache2/htdocs/goog/profiles/google_auth/modules/contrib/oauth_common/oauth_common.module on line 61
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alex_b’s picture

Version: 6.x-2.0-beta2 » 6.x-2.x-dev
Status: Active » Fixed

Ok, this seems to be fixed in DRUPAL-6--2 - release?

alex_b’s picture

Status: Fixed » Active

Uh, no, it isn't.

alex_b’s picture

Status: Active » Needs review
FileSize
1.45 KB

Should it be oauth_common_context_list() instead of oauth_common_authorization_contexts() ?

voxpelli’s picture

Project: OAuth Common (deprecated) » OAuth 1.0
Version: 6.x-2.x-dev » 6.x-3.0-beta1

Moving to the OAuth module as the OAuth Common module has replaced it.

voxpelli’s picture

Status: Needs review » Fixed

Has already been fixed in 6.x-3.0-beta1

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

alphex’s picture

Status: Closed (fixed) » Active

Is there any plan on fixing this for 2.x
Or, better... making Twitter Signin work with OAuth 3.x?

I've gotten Twitter Signin to work with OAuth_Common 2.x. But its generating this error which is making managing user settings pretty difficult.

alphex’s picture

In my specific case, I commented out the FOREACH statement that generates this error.

// removed by comment to test if it works to solve the fatal error we get on http://_server_address_/admin/user/permissions
//  foreach(oauth_common_authorization_contexts() as $context => $levels) {
//    $permissions[] = sprintf('oauth register consumers in %s', $context);
//    $permissions[] = sprintf('oauth authorize consumers in %s', $context);
//  }

That foreach statement begins on line 61
This works for ME, it obviously breaks other functionality if you need to authorize consumers in your permissions. Which I don't for my site.

voxpelli’s picture

Status: Active » Closed (fixed)

@duran: Oh - I got so many things to respond to this and I will try my best to sound nice while saying it:

1. The Twitter module clearly states that it uses the 2.x version of the OAuth.module.
2. The OAuth.module clearly states that 3.x and 2.x isn't compatible in any way.
3. OAuth.module 2.x will receive no fixes.
3. There is no longer any method like oauth_common_authorization_contexts() in 3.x.
4. Once again - the Twitter module uses the 2.x version of OAuth.module and not 3.x.

Will the Twitter module be upgraded to work with OAuth 3.x? I certainly hope so. Until then, if you only need to log in with Twitter, you can try my pretty very early version of OAuth Connector: http://drupal.org/project/oauthconnector