@tsteur opened this Issue on May 20th 2013 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 -->

<a href='/0'>#0</a> Piwik_ErrorHandler(...) called at [/home/piwik-demo/www/demo.piwik.org/plugins/ImageGraph/API.php:441]
<a href='/1'>#1</a> Piwik_ImageGraph_API->get(...) called at [:]
<a href='/2'>#2</a> call_user_func_array(...) called at [/home/piwik-demo/www/demo.piwik.org/core/API/Proxy.php:188]
<a href='/3'>#3</a> Piwik_API_Proxy->call(...) called at [/home/piwik-demo/www/demo.piwik.org/core/API/Request.php:145]
<a href='/4'>#4</a> Piwik_API_Request->process(...) called at [/home/piwik-demo/www/demo.piwik.org/plugins/API/Controller.php:25]
<a href='/5'>#5</a> Piwik_API_Controller->index(...) called at [:]
<a href='/6'>#6</a> call_user_func_array(...) called at [/home/piwik-demo/www/demo.piwik.org/core/FrontController.php:125]
<a href='/7'>#7</a> 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](#3533]) 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 commented on October 30th 2013 Owner

This bug seems to be fixed.

This Issue was closed on January 6th 2014
Powered by GitHub Issue Mirror