Hello,

I've installed the module without problem. When I click on "Grant access..." in the module settings, I'm redirected on a google page that ask me to autorize access to http://www.mysite.com/admin/settings/google-analytics-api. I click on "autorize access" and then I redirected to a page like :
http://www.mysite.com/admin/settings/google-analytics-api?token=CJzzksnF... that give a 500 error.

Is there someone that could help me ?

François

Comments

FrancoisL’s picture

Title: 500 error after autorizing access » Error 500 after autorizing access
greggles’s picture

Title: Error 500 after autorizing access » Error 500 after authorizing access
Category: bug » support
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

I haven't seen this myself and it seems nobody else has either. My guess is that it's something specific to your site.

I suggest looking at the apache or php error log.

Updating category, priority, and status to reflect the situation.

davident’s picture

I have also seen this error and have not found a solution. I can say that the 500 error appears to be a local server error, not a Google server error. Also, my particular setup is in a subfolder of an ip (no domain) (xxx.xxx.xx.xx/example) with clean urls turned on.
UPDATE: It's actually a "Document moved temporarily. 302" error that I'm getting.

bavarian’s picture

I am ending upp with a 404-error in this procedure described here.

groovehunter’s picture

got that error on first time setup and authorization too

in my apache2 error.log i have

PHP Fatal error:  Uncaught exception 'Exception' with message 'GAPI: Failed to authenticate user. Error: "Request failed, fopen provides no further information"' in /var/www/vhosts/drupal-6.19/sites/all/modules/google_analytics_api/gapi.class.php:774\nStack trace:\n#0 /var/www/vhosts/drupal-6.19/sites/all/modules/google_analytics_api/gapi.class.php(862): gapiAuthSub->fetchSessionToken()\n#1 /var/www/vhosts/drupal-6.19/sites/all/modules/google_analytics_api/gapi.class.php(846): gapiAuthSub::authenticate(NULL, true)\n#2 /var/www/vhosts/drupal-6.19/sites/all/modules/google_analytics_api/google_analytics_api.admin.inc(87): gapiAuthSub::checkToken()\n#3 /var/www/vhosts/drupal-6.19/sites/all/modules/google_analytics_api/google_analytics_api.admin.inc(10): google_analytics_api_check_token()\n#4 [internal function]: google_analytics_api_admin(Array)\n#5 /var/www/vhosts/drupal-6.19/includes/form.inc(376): call_user_func_array('google_analytic...', Array)\n#6 [internal function]: drupal_retrieve_form('google_analytic...', Array)\n#7 /var/www/vho in /var/www/vhosts/drupal-6.19/sites/all/modules/google_analytics_api/gapi.class.php on line 774

steveoriol’s picture

I have the same 500 error for the website on line, but not on the local one ???
Did anybody find a solution ?

raspberryman’s picture

Assigned: Unassigned » raspberryman
Status: Postponed (maintainer needs more info) » Closed (fixed)

We're redone the API class to use OAuth in 6x-dev. Please test and, if there are problems, open a new issue. All the AuthSub authentication code is gone.

steveoriol’s picture

Super, raspberryman !
It is working by now,
thank you ...

In fact now, the Auth is working in the "admin/settings/google-analytics-reports" page (Google Analytics settings)
but,
on I get 500 error on "node/xxxxx/statistics" pages if there is google data on the node.

is any think I have to do next ?

error in error.log is:
[Tue Apr 12 18:30:05 2011] [error] [client 93.1.xxx.xxx] PHP Fatal error: Call to a member function getDimensions() on a non-object in /home/xxxxxxx/www/sites/all/modules/google_analytics_api/reports/google_analytics_reports.module on line 143, referer: http://www.xxxxxxx.com/en/node/622

I open a new issue #1124990: Error 500 on "node/xxxxx/statistics" nodes