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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ben833’s picture

Plazik’s picture

Status: Needs review » Closed (won't fix)

6.x version is unsupported. Please upgrade to 7.x.