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.
After logging in at LinkedIn I am returned to my client website and get this error:
Fatal error: Class 'HttpClientOAuth' not found in /Users/erik/www/vngkickstarter/htdocs/sites/all/modules/contrib/oauthconnector/oauthconnector.module on line 91
This is what I have found:
- The http_client_oauth is enabled.
- It happens independend of PHP-version (tested 5.4, 5.6)
- Adding the following line fixes the error:
module_load_include('inc', 'http_client', 'includes/auth/oauth/HttpClientOAuth');
or
module_load_include('inc', 'http_client_oauth', 'HttpClientOAuth');
So, it looks like something goes wrong with Drupal's autoloading.
Comment | File | Size | Author |
---|---|---|---|
#1 | oauthconnector-missing-HttpClientOAuth-2425889-1.patch | 800 bytes | Sutharsan |
Comments
Comment #1
Sutharsan CreditAttribution: Sutharsan commented