right, when i grant acces to google account and return to my site i get the following error:

[10-Aug-2009 10:19:44] PHP Fatal error:  Uncaught exception 'Exception' with message 'GAPI: Failed to authenticate user. Error: "Request failed, fopen provides no further information"' in C:\Production\development.polisportaal.nl\sites\all\modules\google_analytics_api\gapi.class.php:768

Well this is probaply a local problem with fopen (curl). Ill have to see about my server settings (IIS)
But it would be nice to let the module check for dependencies before use, now i get a blank screen and no error messages. Not very friendly.

Comments

jkitching’s picture

Status: Active » Postponed

Hi Docc,

I received the same error when I started working with the gapi library included in this module. I figured it was something weird to do about my system.

The workaround is to enable CURL in your PHP installation, and it will use that instead of fopen. I shall have to contact the gapi owner to see if he can fix the fopen problem. Or, if you have a moment, it would be helpful to post the bug here:

http://code.google.com/p/gapi-google-analytics-php-interface/issues/list

Thank you so much for testing the module -- it will be rapidly maturing over the next week.

simmoe’s picture

Hmm - I enbaled CURL, but still get

Fatal error: Uncaught exception 'Exception' with message 'GAPI: Failed to authenticate user. Error: "Request failed, fopen provides no further information"' in C:\Program Files (x86)\Drupal\www.e17.dk\sites\all\modules\contrib\google_analytics_api\gapi.class.php:774 Stack trace: #0 C:\Program Files (x86)\Drupal\www.e17.dk\sites\all\modules\contrib\google_analytics_api\gapi.class.php(862): gapiAuthSub->fetchSessionToken() #1 C:\Program Files (x86)\Drupal\www.e17.dk\sites\all\modules\contrib\google_analytics_api\gapi.class.php(846): gapiAuthSub::authenticate(NULL, true) #2 C:\Program Files (x86)\Drupal\www.e17.dk\sites\all\modules\contrib\google_analytics_api\google_analytics_api.admin.inc(87): gapiAuthSub::checkToken() #3 C:\Program Files (x86)\Drupal\www.e17.dk\sites\all\modules\contrib\google_analytics_api\google_analytics_api.admin.inc(10): google_analytics_api_check_token() #4 [internal function]: google_analytics_api_admin(Array) #5 C:\Program Files (x86)\Drupal\www.e17.dk\includes\form.inc(366): call_user_func_array( in C:\Program Files (x86)\Drupal\www.e17.dk\sites\all\modules\contrib\google_analytics_api\gapi.class.php on line 774

Anything more I have to do except from enbling CURL?

Best,
Simon

jkitching’s picture

Status: Postponed » Closed (won't fix)

Closing since this is an upstream bug.

Please use CURL for now!

silkogelman’s picture

possible solution for this problem:

Aside from curl, you also need protocol https enabled in libcurl.

In phpinfo() under Curl check the variable SSL. Must be "yes". If not, you need to
enable SSL in curl. In WHM go to EasyApache and check curlssl.

source:
http://code.google.com/p/gapi-google-analytics-php-interface/issues/deta...

simmoe’s picture

Thanks, that helped!

s