Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evolution graph fails to load and returns stack trace for Actions.getPageUrls #3943

Closed
tsteur opened this issue May 20, 2013 · 1 comment
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@tsteur
Copy link
Member

tsteur commented May 20, 2013

Hi,

in Piwik Mobile App I'm trying to display this evolution graph which is a subtable report:

http://demo.piwik.org/index.php?module=API&method=ImageGraph.get&idSite=7&apiModule=Actions&apiAction=getPageUrls&token_auth=anonymous&period=day&date=2013-04-19,2013-05-18&idSubtable=45&filter_sort_column=nb_hits&column=nb_hits&columns=nb_hits&language=en&width=600&height=300&fontSize=18&showMetricTitle=0&aliasedGraph=1&legendAppendMetric=0&backgroundColor=efefef&gridColor=dcdcdc&colors=cb2026&legendFontSize=18

it outputs the following stack trace:

Notice: Undefined index: period in /home/piwik-demo/www/demo.piwik.org/plugins/ImageGraph/API.php on line 441 

Backtrace -->

#0 Piwik_ErrorHandler(...) called at [/home/piwik-demo/www/demo.piwik.org/plugins/ImageGraph/API.php:441]
#1 Piwik_ImageGraph_API->get(...) called at [:]
#2 call_user_func_array(...) called at [/home/piwik-demo/www/demo.piwik.org/core/API/Proxy.php:188]
#3 Piwik_API_Proxy->call(...) called at [/home/piwik-demo/www/demo.piwik.org/core/API/Request.php:145]
#4 Piwik_API_Request->process(...) called at [/home/piwik-demo/www/demo.piwik.org/plugins/API/Controller.php:25]
#5 Piwik_API_Controller->index(...) called at [:]
#6 call_user_func_array(...) called at [/home/piwik-demo/www/demo.piwik.org/core/FrontController.php:125]
#7 Piwik_FrontController->dispatch(...) called at [/home/piwik-demo/www/demo.piwik.org/index.php:47]

I'm not sure whether it is related to [and #3887 but I don't think so. The evolution graph url is generated by this subtable report:

http://demo.piwik.org/index.php?hideMetricsDoc=1&showTimer=0&filter_limit=30&period=day&date=yesterday&idSite=7&idSubtable=32&apiModule=Actions&apiAction=getPageUrls&sortOrderColumn=nb_hits&filter_sort_column=nb_hits&module=API&token_auth=anonymous&format=json&method=API.getProcessedReport&language=en&

Currently, no evolution graph is working for subtable reports which always results in a blank graph in mobile app. Maybe a quick solution is to not return any evolution graph url in MetadataAPI for subtable reports as mentioned here [#3887]

@tsteur
Copy link
Member Author

tsteur commented Oct 30, 2013

This bug seems to be fixed.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

1 participant