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

Error when switching 'report tables' view of DBStats plugin to pie chart #5952

Closed
sgiehl opened this issue Aug 7, 2014 · 0 comments
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@sgiehl
Copy link
Member

sgiehl commented Aug 7, 2014

When viewing the report table statistics provided by the DBStats plugin it is possible to switch to pie chart in the footer. Switching leads to an error:

WARN DBStats[2014-08-07 22:24:28] [da0e3] Failed to get data from API: Trying to add two strings in DataTable\Row::sumRowArray: '16 K' + '3600 K' for row # ['label' => -1, 'data_size' => '16 K', 'index_size' => '16 K', 'row_count' => 0, 'total_size' => '32 B'] [] [idsubtable = ]<br />#0 /var/www/piwik/core/DataTable/Row.php(566): Piwik\DataTable\Row->sumRowArray('16 K', '3600 K')#1 /var/www/piwik/core/DataTable/Row.php(535): Piwik\DataTable\Row->getColumnValuesMerged('sum', '16 K', '3600 K')#2 /var/www/piwik/core/DataTable/Filter/Truncate.php(105): Piwik\DataTable\Row->sumRow(Object(Piwik\DataTable\Row), false, false)#3 /var/www/piwik/core/DataTable/Filter/Truncate.php(72): Piwik\DataTable\Filter\Truncate->addSummaryRow(Object(Piwik\DataTable))#4 /var/www/piwik/core/DataTable.php(425): Piwik\DataTable\Filter\Truncate->filter(Object(Piwik\DataTable))#5 /var/www/piwik/core/API/DataTableGenericFilter.php(163): Piwik\DataTable->filter('Truncate', Array)#6 /var/www/piwik/core/API/DataTableGenericFilter.php(42): Piwik\API\DataTableGenericFilter->applyGenericFilters(Object(Piwik\DataTable))#7 /var/www/piwik/core/Plugin/Visualization.php(576): Piwik\API\DataTableGenericFilter->filter(Object(Piwik\DataTable))#8 /var/www/piwik/core/Plugin/Visualization.php(319): Piwik\Plugin\Visualization->applyGenericFilters()#9 /var/www/piwik/core/Plugin/Visualization.php(171): Piwik\Plugin\Visualization->applyFilters()#10 /var/www/piwik/core/Plugin/ViewDataTable.php(409): Piwik\Plugin\Visualization->buildView()#11 /var/www/piwik/core/Plugin/Report.php(287): Piwik\Plugin\ViewDataTable->render()#12 /var/www/piwik/core/Plugin/Controller.php(278): Piwik\Plugin\Report->render()#13 /var/www/piwik/plugins/DBStats/Controller.php(40): Piwik\Plugin\Controller->renderReport(Object(Piwik\Plugins\DBStats\Reports\GetReportDataSummary))#14 [internal function]: Piwik\Plugins\DBStats\Controller->index()#15 /var/www/piwik/core/FrontController.php(576): call_user_func_array(Array, Array)#16 /var/www/piwik/core/FrontController.php(86): Piwik\FrontController->doDispatch(NULL, NULL, NULL)#17 /var/www/piwik/core/dispatch.php(34): Piwik\FrontController->dispatch()#18 /var/www/piwik/index.php(47): require_once('/var/www/piwik/...')#19 {main}

Tested with current git and on an 2.4.1 install

@sgiehl sgiehl added the Bug label Aug 7, 2014
@mattab mattab added this to the Piwik 2.6.0 milestone Aug 9, 2014
@tsteur tsteur closed this as completed in 0f08861 Aug 18, 2014
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

2 participants