cuongpd / gapi-google-analytics-php-interface

Automatically exported from code.google.com/p/gapi-google-analytics-php-interface
0 stars 0 forks source link

No valid metric or dimesion #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Installed the latest version
2. Entered my valid username/password/profile ID
3. Tried to load the Report example

What is the expected output? What do you see instead?
Fatal error: Uncaught exception 'Exception' with message 'No valid metric or 
dimesion called "Pageviews"' in [pathtogapi]/gapi.class.php:563 Stack trace: #0 
[pathtogapi]/gapi.class.php(563): gapiReportEntry::__call() #1 
[pathtogapi]/example.report.php(23): gapiReportEntry->__call('getPageviews', 
Array) #2 [pathtogapi]/example.report.php(23): gapiReportEntry->getPageviews() 
#3 {main} thrown in [pathtogapi]/gapi.class.php on line 563 

I get similar errors for all examples.

What version of the product are you using? On what operating system?
I downloaded the latest trunk version today (August 09). Running on some kind 
of slackware linux version.

Please provide any additional information below.

Original issue reported on code.google.com by a.huss...@federalbuyersguideinc.com on 9 Aug 2010 at 7:23

GoogleCodeExporter commented 9 years ago
P.S. PHP Version 5.0.3

I downloaded the code from the trunk. I was getting similar errors from gapi 
1.3.

I also changed the line 
$ga = gapiClientLogin->authenticate(ga_email,ga_password);
to 
$ga = gapiClientLogin::authenticate(ga_email,ga_password);
in example.report.php

Original comment by a.huss...@federalbuyersguideinc.com on 9 Aug 2010 at 7:36