After disabling the LinkedIn module I started getting a 500 error from my custom reporting module that uses Google Analytics Reports. Also, I was unable to view /admin/settings/google-analytics-reports -- it was a White Screen of Death (WSOD).
Here is the error message from hitting /admin/settings/google-analytics-reports
---
E_ERROR: Class 'OAuthSignatureMethod_HMAC_SHA1' not found
Stack trace
in GAFeed::__construct called at /sites/all/modules/google_analytics_reports/GAFeed.lib.inc (61)
in GAFeed::__construct called at /sites/all/modules/google_analytics_reports/google_analytics_api.module (80)
in google_analytics_api_new_gafeed called at /sites/all/modules/google_analytics_reports/google_analytics_api.module (97)
in google_analytics_api_account_data called at /sites/all/modules/google_analytics_reports/google_analytics_api.pages.inc (12)
in google_analytics_api_admin called at ? (?)
in call_user_func_array called at /includes/form.inc (377)
in drupal_retrieve_form called at ? (?)
in call_user_func_array called at /includes/form.inc (103)
in drupal_get_form called at ? (?)
in call_user_func_array called at /includes/menu.inc (350)
…ute_active_handler called at /index.php (17)
---
From researching what the LinkedIn module does to use OAuth I realized that an include command for the OAuth lib file was necessary:
module_load_include('lib.php', 'oauth');
The reason that I included this line is that we shouldn't have to rely on the module weights to have this module work. The file will never be included twice because of the require_once call in module_load_include. This bug was probably a result of an undetected dependency with another module.
I will submit a patch, so please review and include in the next version of the module.
Thanks!
Ben
Comment | File | Size | Author |
---|---|---|---|
#1 | OAuthSignatureMethod_HMAC_SHA1_not_found-added_include-2292699-1-D6.patch | 822 bytes | ben833 |
Comments
Comment #1
ben833 CreditAttribution: ben833 commentedThis patch fixes the issue.
Comment #2
Plazik CreditAttribution: Plazik as a volunteer commented6.x version is unsupported. Please upgrade to 7.x.