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.
Accessing 'Edit' for a consumer under user/1/oauth/consumers gives the following error:
Fatal error: Class 'OAuthConsumer' not found in C:\acquia-drupal\sites\all\modules\oauth\includes\DrupalOAuthConsumer.inc on line 3
Adding require_once(); with path to OAuth.php in the first line of DrupalOAuthConsumer.inc resolves this and gives access to the details of the consumer.
Without access to this screen you can't access the required tokens for the client.
Comments
Comment #1
marksward CreditAttribution: marksward commentedI'm not sure whether require_once() or module_load_include() should be used. In either case the file it needs is in sites/all/libraries/oauth - Libraries Module is intended to handle this? I'm playing trying to sort a relative path.
Comment #2
juampynr CreditAttribution: juampynr commentedPlease download the latest dev version since tomorrow as I have reverted commits related to Libraries API integration. This work is being done now at branch 7.x-4.x.
See #1433274: Decouple OAuth code from Drupal module via Libraries API for full details.