Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
An unhandled exception is thrown when the code below runs for Dimension::TYPE_DURATION_MS and $value contains __mtm_ranking_query_others__ (from RankingQuery::LABEL_SUMMARY_ROW). This value is present when over 50,000 dimensions are being grouped/aggregated.
This issue is identified on Cloud but is not specific to cloud.
core/Columns/Dimension.php:422
public function groupValue($value, $idSite)
{
switch ($this->type) {
case Dimension::TYPE_URL:
return str_replace(array('http://', 'https://'), '', $value);
case Dimension::TYPE_BOOL:
return !empty($value) ? '1' : '0';
case Dimension::TYPE_DURATION_MS:
return round($value / 1000, 2) * 1000; // because we divide we need to group them and cannot do this in formatting step
}
return $value;
}
What should happen?
The rollup special value RankingQuery::LABEL_SUMMARY_ROW should be handled appropriately during archiving.
This currently affects custom report archiving and we are seeing 000s of errors logged in the past couple of weeks.
An example of the console command causing the issue is:
What happened?
An unhandled exception is thrown when the code below runs for
Dimension::TYPE_DURATION_MS
and$value
contains__mtm_ranking_query_others__
(fromRankingQuery::LABEL_SUMMARY_ROW
). This value is present when over 50,000 dimensions are being grouped/aggregated.This issue is identified on Cloud but is not specific to cloud.
What should happen?
The rollup special value
RankingQuery::LABEL_SUMMARY_ROW
should be handled appropriately during archiving. This currently affects custom report archiving and we are seeing 000s of errors logged in the past couple of weeks. An example of the console command causing the issue is:How can this be reproduced?
A custom report is created with the dimensions below:
Matomo version
5 (Cloud)
PHP version
8.1
Server operating system
No response
What browsers are you seeing the problem on?
Not applicable (e.g. an API call etc.)
Computer operating system
No response
Relevant log output
Validations