Division by zero MySQLMetadataProvider.php


#1

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

Warning: Division by zero in /vhosts/piwik/html-8080/plugins/DBStats/MySQLMetadataProvider.php on line 303

Backtrace -->
[size=small]#0 Piwik_ErrorHandler(…) called at [/vhosts/piwik/html-8080/plugins/DBStats/MySQLMetadataProvider.php:303]
#1 Piwik_DBStats_MySQLMetadataProvider->getEstimatedBlobArchiveRowSize(…) called at [:]
#2 call_user_func_array(…) called at [/vhosts/piwik/html-8080/core/DataTable/Filter/ColumnCallbackAddColumn.php:83]
#3 Piwik_DataTable_Filter_ColumnCallbackAddColumn->filter(…) called at [/vhosts/piwik/html-8080/core/DataTable.php:381]
#4 Piwik_DataTable->filter(…) called at [/vhosts/piwik/html-8080/plugins/DBStats/MySQLMetadataProvider.php:260]
#5 Piwik_DBStats_MySQLMetadataProvider->getRowCountsByArchiveName(…) called at [/vhosts/piwik/html-8080/plugins/DBStats/MySQLMetadataProvider.php:197]
#6 Piwik_DBStats_MySQLMetadataProvider->getRowCountsAndSizeByBlobName(…) called at [/vhosts/piwik/html-8080/plugins/DBStats/API.php:245]
#7 Piwik_DBStats_API->getIndividualReportsSummary(…) called at [:]
#8 call_user_func_array(…) called at [/vhosts/piwik/html-8080/core/API/Proxy.php:190]
#9 Piwik_API_Proxy->call(…) called at [/vhosts/piwik/html-8080/core/API/Request.php:128]
#10 Piwik_API_Request->process(…) called at [/vhosts/piwik/html-8080/core/ViewDataTable.php:421]
#11 Piwik_ViewDataTable->loadDataTableFromAPI(…) called at [/vhosts/piwik/html-8080/core/ViewDataTable/HtmlTable.php:81]
#12 Piwik_ViewDataTable_HtmlTable->main(…) called at [/vhosts/piwik/html-8080/core/Controller.php:152]
#13 Piwik_Controller->renderView(…) called at [/vhosts/piwik/html-8080/plugins/DBStats/Controller.php:180]
#14 Piwik_DBStats_Controller->getIndividualReportsSummary(…) called at [:]
#15 call_user_func_array(…) called at [/vhosts/piwik/html-8080/core/FrontController.php:138]
#16 Piwik_FrontController->dispatch(…) called at [/vhosts/piwik/html-8080/index.php:53][/size]


(Matthieu Aubry) #2

Thanks for the report - please try this fix: http://dev.piwik.org/trac/changeset/6514