Bug report for 2.2.0-RC2: Error in row evolution overview for events


#1

Hi I just upgraded Piwik 2.1.0 to 2.2.0-RC2 to test the event tracking.

When I go to “Actions” > “Events” and then click on any category, action or name and then open the row evolution window for any of these, the pop up shows 2 errors. I think the both errors are the same.

First error


There is an error. Please report the message (Piwik 2.2.0-rc2) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Notice: Undefined index: in /usr/www/users/ysuraac/com.ysura.piwik/plugins/Events/Events.php on line 92 

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/plugins/Events/Events.php:92]
#1 Piwik\Plugins\Events\Events->getDimensionLabel(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/plugins/Events/Events.php:247]
#2 Piwik\Plugins\Events\Events->addRelatedReports(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/plugins/Events/Events.php:232]
#3 Piwik\Plugins\Events\Events->configureViewDataTable(...) called at [:]
#4 call_user_func_array(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/core/EventDispatcher.php:98]
#5 Piwik\EventDispatcher->postEvent(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/core/Piwik.php:764]
#6 Piwik\Piwik::postEvent(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/core/Plugin/ViewDataTable.php:216]
#7 Piwik\Plugin\ViewDataTable->__construct(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/core/Plugin/Visualization.php:155]
#8 Piwik\Plugin\Visualization->__construct(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/core/ViewDataTable/Factory.php:114]
#9 Piwik\ViewDataTable\Factory::build(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/plugins/CoreHome/DataTableRowAction/RowEvolution.php:190]
#10 Piwik\Plugins\CoreHome\DataTableRowAction\RowEvolution->getRowEvolutionGraph(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/plugins/CoreHome/Controller.php:150]
#11 Piwik\Plugins\CoreHome\Controller->getRowEvolutionGraph(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/plugins/CoreHome/DataTableRowAction/RowEvolution.php:119]
#12 Piwik\Plugins\CoreHome\DataTableRowAction\RowEvolution->renderPopover(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/plugins/CoreHome/Controller.php:128]
#13 Piwik\Plugins\CoreHome\Controller->getRowEvolutionPopover(...) called at [:]
#14 call_user_func_array(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/core/FrontController.php:505]
#15 Piwik\FrontController->doDispatch(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/core/FrontController.php:85]
#16 Piwik\FrontController->dispatch(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/core/dispatch.php:34]
#17 require_once(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/index.php:47]

Second error


There is an error. Please report the message (Piwik 2.2.0-rc2) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Notice: Undefined index: in /usr/www/users/ysuraac/com.ysura.piwik/plugins/Events/Events.php on line 92 

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/plugins/Events/Events.php:92]
#1 Piwik\Plugins\Events\Events->getDimensionLabel(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/plugins/Events/Events.php:247]
#2 Piwik\Plugins\Events\Events->addRelatedReports(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/plugins/Events/Events.php:232]
#3 Piwik\Plugins\Events\Events->configureViewDataTable(...) called at [:]
#4 call_user_func_array(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/core/EventDispatcher.php:98]
#5 Piwik\EventDispatcher->postEvent(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/core/Piwik.php:764]
#6 Piwik\Piwik::postEvent(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/core/Plugin/ViewDataTable.php:216]
#7 Piwik\Plugin\ViewDataTable->__construct(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/core/ViewDataTable/Factory.php:114]
#8 Piwik\ViewDataTable\Factory::build(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/plugins/CoreHome/DataTableRowAction/RowEvolution.php:190]
#9 Piwik\Plugins\CoreHome\DataTableRowAction\RowEvolution->getRowEvolutionGraph(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/plugins/CoreHome/DataTableRowAction/RowEvolution.php:277]
#10 Piwik\Plugins\CoreHome\DataTableRowAction\RowEvolution->getSparkline(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/plugins/CoreHome/DataTableRowAction/RowEvolution.php:260]
#11 Piwik\Plugins\CoreHome\DataTableRowAction\RowEvolution->getMetricsToggles(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/plugins/CoreHome/DataTableRowAction/RowEvolution.php:122]
#12 Piwik\Plugins\CoreHome\DataTableRowAction\RowEvolution->renderPopover(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/plugins/CoreHome/Controller.php:128]
#13 Piwik\Plugins\CoreHome\Controller->getRowEvolutionPopover(...) called at [:]
#14 call_user_func_array(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/core/FrontController.php:505]
#15 Piwik\FrontController->doDispatch(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/core/FrontController.php:85]
#16 Piwik\FrontController->dispatch(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/core/dispatch.php:34]
#17 require_once(...) called at [/usr/www/users/ysuraac/com.ysura.piwik/index.php:47]


(Matthieu Aubry) #2

Thanks for the report, very appreciated! I didn’t notice this in my tests. Fixed in Fix notice: Notice: Undefined index: in plugins/Events/Events.php on … · matomo-org/matomo@91df292 · GitHub