Opened 11 months ago

Closed 6 months ago

Last modified 3 months ago

#3943 closed Bug (fixed)

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

Reported by: tsteur Owned by:
Priority: normal Milestone: 2.0.3 - Piwik 2.0.3
Component: Core Keywords:
Cc: Sensitive: no

Description

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 #3533 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

Change History (4)

comment:1 Changed 11 months ago by matt (mattab)

  • Milestone set to 2.0 - Piwik 2.0

comment:2 Changed 7 months ago by matt (mattab)

  • Milestone changed from 2.0 - Piwik 2.0 to Piwik 2.1

Piwik 2.0 full focus mode: Moving normal + low priorities to Piwik 2.1 milestone.

comment:3 Changed 6 months ago by tsteur

  • Resolution set to fixed
  • Status changed from new to closed

This bug seems to be fixed.

comment:4 Changed 3 months ago by matt (mattab)

  • Milestone changed from 2.1 - Piwik 2.1 to 2.0.3 - Piwik 2.0.3
Note: See TracTickets for help on using tickets.