cuongpd / gapi-google-analytics-php-interface

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

Undefined variable: google_results when running first example #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. tried the example.account.php file 

What is the expected output? What do you see instead?
expected: 
www.xxx.xx (6362953)
www.xxx.xx (6459492)
seen: 
Notice: Undefined variable: google_results in
/projects/we-create/lib/vendor/gapi/gapi.class.php on line 277

Call Stack:
    0.0003     318392   1. {main}() /projects/we-create/web/website_dev.php:0
    0.1708    5794828   2. sfContext->dispatch()
/projects/we-create/web/website_dev.php:9
    0.1708    5794872   3. sfFrontWebController->dispatch()
/projects/we-create/lib/vendor/symfony/lib/util/sfContext.class.php:170
    0.1717    5814036   4. sfController->forward()
/projects/we-create/lib/vendor/symfony/lib/controller/sfFrontWebController.class
.php:48
    0.1865    6110728   5. sfFilterChain->execute()
/projects/we-create/lib/vendor/symfony/lib/controller/sfController.class.php:229
    0.1872    6111856   6. sfRenderingFilter->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfFilterChain.class.php:53
    0.1872    6111856   7. sfFilterChain->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfRenderingFilter.class.php:33
    0.1878    6112940   8. sfExecutionFilter->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfFilterChain.class.php:53
    0.1881    6113852   9. sfExecutionFilter->handleAction()
/projects/we-create/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php:42
    0.1881    6113852  10. sfExecutionFilter->executeAction()
/projects/we-create/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php:78
    0.1881    6113896  11. sfActions->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php:92
    0.1888    6115056  12. gapiActions->executeIndex()
/projects/we-create/lib/vendor/symfony/lib/action/sfActions.class.php:60
    0.4863    6116136  13. gapi->requestAccountData()
/projects/we-create/apps/website/modules/gapi/actions/actions.class.php:23
    0.9768    6118644  14. gapi->accountObjectMapper()
/projects/we-create/lib/vendor/gapi/gapi.class.php:88

Notice: Trying to get property of non-object in
/projects/we-create/lib/vendor/gapi/gapi.class.php on line 277

Call Stack:
    0.0003     318392   1. {main}() /projects/we-create/web/website_dev.php:0
    0.1708    5794828   2. sfContext->dispatch()
/projects/we-create/web/website_dev.php:9
    0.1708    5794872   3. sfFrontWebController->dispatch()
/projects/we-create/lib/vendor/symfony/lib/util/sfContext.class.php:170
    0.1717    5814036   4. sfController->forward()
/projects/we-create/lib/vendor/symfony/lib/controller/sfFrontWebController.class
.php:48
    0.1865    6110728   5. sfFilterChain->execute()
/projects/we-create/lib/vendor/symfony/lib/controller/sfController.class.php:229
    0.1872    6111856   6. sfRenderingFilter->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfFilterChain.class.php:53
    0.1872    6111856   7. sfFilterChain->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfRenderingFilter.class.php:33
    0.1878    6112940   8. sfExecutionFilter->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfFilterChain.class.php:53
    0.1881    6113852   9. sfExecutionFilter->handleAction()
/projects/we-create/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php:42
    0.1881    6113852  10. sfExecutionFilter->executeAction()
/projects/we-create/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php:78
    0.1881    6113896  11. sfActions->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php:92
    0.1888    6115056  12. gapiActions->executeIndex()
/projects/we-create/lib/vendor/symfony/lib/action/sfActions.class.php:60
    0.4863    6116136  13. gapi->requestAccountData()
/projects/we-create/apps/website/modules/gapi/actions/actions.class.php:23
    0.9768    6118644  14. gapi->accountObjectMapper()
/projects/we-create/lib/vendor/gapi/gapi.class.php:88

Notice: Undefined variable: google_results in
/projects/we-create/lib/vendor/gapi/gapi.class.php on line 278

Call Stack:
    0.0003     318392   1. {main}() /projects/we-create/web/website_dev.php:0
    0.1708    5794828   2. sfContext->dispatch()
/projects/we-create/web/website_dev.php:9
    0.1708    5794872   3. sfFrontWebController->dispatch()
/projects/we-create/lib/vendor/symfony/lib/util/sfContext.class.php:170
    0.1717    5814036   4. sfController->forward()
/projects/we-create/lib/vendor/symfony/lib/controller/sfFrontWebController.class
.php:48
    0.1865    6110728   5. sfFilterChain->execute()
/projects/we-create/lib/vendor/symfony/lib/controller/sfController.class.php:229
    0.1872    6111856   6. sfRenderingFilter->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfFilterChain.class.php:53
    0.1872    6111856   7. sfFilterChain->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfRenderingFilter.class.php:33
    0.1878    6112940   8. sfExecutionFilter->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfFilterChain.class.php:53
    0.1881    6113852   9. sfExecutionFilter->handleAction()
/projects/we-create/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php:42
    0.1881    6113852  10. sfExecutionFilter->executeAction()
/projects/we-create/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php:78
    0.1881    6113896  11. sfActions->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php:92
    0.1888    6115056  12. gapiActions->executeIndex()
/projects/we-create/lib/vendor/symfony/lib/action/sfActions.class.php:60
    0.4863    6116136  13. gapi->requestAccountData()
/projects/we-create/apps/website/modules/gapi/actions/actions.class.php:23
    0.9768    6118644  14. gapi->accountObjectMapper()
/projects/we-create/lib/vendor/gapi/gapi.class.php:88

Notice: Trying to get property of non-object in
/projects/we-create/lib/vendor/gapi/gapi.class.php on line 278

Call Stack:
    0.0003     318392   1. {main}() /projects/we-create/web/website_dev.php:0
    0.1708    5794828   2. sfContext->dispatch()
/projects/we-create/web/website_dev.php:9
    0.1708    5794872   3. sfFrontWebController->dispatch()
/projects/we-create/lib/vendor/symfony/lib/util/sfContext.class.php:170
    0.1717    5814036   4. sfController->forward()
/projects/we-create/lib/vendor/symfony/lib/controller/sfFrontWebController.class
.php:48
    0.1865    6110728   5. sfFilterChain->execute()
/projects/we-create/lib/vendor/symfony/lib/controller/sfController.class.php:229
    0.1872    6111856   6. sfRenderingFilter->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfFilterChain.class.php:53
    0.1872    6111856   7. sfFilterChain->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfRenderingFilter.class.php:33
    0.1878    6112940   8. sfExecutionFilter->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfFilterChain.class.php:53
    0.1881    6113852   9. sfExecutionFilter->handleAction()
/projects/we-create/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php:42
    0.1881    6113852  10. sfExecutionFilter->executeAction()
/projects/we-create/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php:78
    0.1881    6113896  11. sfActions->execute()
/projects/we-create/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php:92
    0.1888    6115056  12. gapiActions->executeIndex()
/projects/we-create/lib/vendor/symfony/lib/action/sfActions.class.php:60
    0.4863    6116136  13. gapi->requestAccountData()
/projects/we-create/apps/website/modules/gapi/actions/actions.class.php:23
    0.9768    6118644  14. gapi->accountObjectMapper()
/projects/we-create/lib/vendor/gapi/gapi.class.php:88
www.xxx.xx (6362953)
www.xxx.xx (6459492)

What version of the product are you using? On what operating system?
1.3 / ubuntu / php 5.3.1-0.dotdeb.1

Please provide any additional information below.
this problem can be fixed by adding to following (diff):

263a264,265
>     $google_results =
$xml->children('http://schemas.google.com/analytics/2009');
>     

kr

Original issue reported on code.google.com by vigilan...@gmail.com on 17 Feb 2010 at 4:13

GoogleCodeExporter commented 9 years ago
duplicate of #12

Original comment by vigilan...@gmail.com on 19 Feb 2010 at 1:00