I've just installed all the modules necessary for the google analytic reports. When I go to configure the module, I am given this error.

Fatal error: Cannot redeclare class OAuthException in /sites/all/modules/oauth/lib/OAuth.php on line 8

Any help would be appreciated, thanks!

Comments

grendzy’s picture

Status:Active» Postponed (maintainer needs more info)

Can you run the following command from your Drupal root to see if the class is in more than one file?

grep -r 'class OAuthException' *

stopshinal’s picture

in root..

grep -r 'class OAuthException' *

returns

sites/all/modules/oauth/lib/OAuth.php:class OAuthException extends Exception {

Leksat’s picture

Check out your php_info(). It might be that your php installiation has a OAuth extension containing OAuthException class.

raspberryman’s picture

Project:Google Analytics Reports» OAuth
Version:7.x-1.x-dev» 7.x-3.x-dev
Status:Postponed (maintainer needs more info)» Closed (duplicate)

Alas, stopshinal, we need to all keep our eye out (and help patch) OAuth module. The goal is to emphasize PECL OAuth. My recommendation is to disable the OAuth PHP extension that you currently have. I'm also moving this issue over to the OAuth queue, but marking it as a duplicate.

Active issue: #1591692: Replace current OAuth library

Others:
#1439254: Fatal Conflicts with PHPs OAuth extension
#958126: Extra class OAuthException Declaration?