Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
tsteur opened this Issue · 1 comment

1 participant

@tsteur
Owner

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
Owner

This bug seems to be fixed.

@tsteur tsteur added this to the 2.0.3 - Piwik 2.0.3 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.