Hello,
i hope this Question was not asked yet, at least i couldn’t find an answer. Seems like with the last Update some things went wrong.
My Problem is that inside the “User/Visitor Overview” (i hope this is right, have a German Installation and it’s called “Besucherübersicht”) Visits are being display wrong. When i saw the total Number of Visitors a couple of Weeks ago, now i see way shorter Number with decimal place:
It should be displaying 1819 Visits as it did before, but i can only see the Number 1,82. Is this a commong thing that there is a Workaround for or does anybody have a Advice?
Thanks for your Help in Advance!
Lukas
(Lukas Winkler)
December 5, 2019, 9:25am
2
Hi,
You are of course right that this is a bug:
opened 11:07AM - 27 Nov 19 UTC
closed 06:48PM - 09 Dec 19 UTC
Bug
This affects Matomo 3.13.0
Integer numbers like the total number of visitors… are correctly shown in graphs, but are crippled by one place and shown with a thousand-separator(?) in the wrong place.
So 2014 visitors are shown as 2,01 vistors in the sparkline.
Please see the following screenshot:
![Anmerkung 2019-11-27 120140](https://user-images.githubusercontent.com/1364282/69718129-d7bdab00-110d-11ea-8c98-ddb9f2f7b278.png)
This will be fixed with
matomo-org:3.x-dev
← matomo-org:summarynbformat
opened 12:10PM - 02 Dec 19 UTC
number formatting is meanwhile done somewhere else. For some local formats this … second formatting breaks the numbers...
fixes #15200
Hi Lukas,
danke Do i have to do something manually like pull something from Git or change a File? Or will this be updated without me having to intervene? Thanks for your Help
Lukas
(Lukas Winkler)
December 5, 2019, 4:50pm
4
Hi,
You can either wait until the release of 3.13.1 or manually edit your plugins/VisitsSummary/Reports/Get.php
as seen in https://github.com/matomo-org/matomo/pull/15218/files:` (remove the marked lines)
diff --git a/plugins/VisitsSummary/Reports/Get.php b/plugins/VisitsSummary/Reports/Get.php
index 9bb7b017ab..2288e90e68 100644
--- a/plugins/VisitsSummary/Reports/Get.php
+++ b/plugins/VisitsSummary/Reports/Get.php
@@ -101,33 +101,6 @@ public function configureView(ViewDataTable $view)
if (!is_numeric($nbUsers) || 0 >= $nbUsers) {
$view->config->replaceSparklineMetric(array('nb_users'), '');
}
-
- $avgGenerationTime = $firstRow->getColumn('avg_time_generation');
- if (false === $avgGenerationTime) {
- // fix avgGenerationTime is not formatted if value is false
- /** @var Formatter $formatter */
- $formatter = StaticContainer::get('Piwik\Metrics\Formatter');
- $avgGenerationTime = $formatter->getPrettyTimeFromSeconds($avgGenerationTime, true);
- $firstRow->setColumn('avg_time_generation', $avgGenerationTime);
- }
-
- $numberMetrics = array('nb_visits', 'nb_uniq_visitors', 'nb_users', 'nb_actions',
- 'nb_pageviews', 'nb_uniq_pageviews', 'nb_searches', 'nb_keywords', 'nb_downloads',
- 'nb_uniq_downloads', 'nb_outlinks', 'nb_uniq_outlinks', 'max_actions');
- foreach ($numberMetrics as $metric) {
- $value = $firstRow->getColumn($metric);
- if (false !== $value) {
- $firstRow->setColumn($metric, $numberFormatter->formatNumber($value));
- }
- }
- $value = $firstRow->getColumn('bounce_rate');
- if (false !== $value) {
- $firstRow->setColumn('bounce_rate', $numberFormatter->formatPercent($value, $precision = 1));
- }
- $value = $firstRow->getColumn('nb_actions_per_visit');
- if (false !== $value) {
- $firstRow->setColumn('nb_actions_per_visit', $numberFormatter->formatNumber($value, $maxFraction = 1));
- }
};
}
}
I’ve updated to 3.13.0 and being hit by this bug. Is this still valid, until 3.13.1 is released?
Lukas
(Lukas Winkler)
December 16, 2019, 10:11am
7
@yurjmatomo ,
Yes, this will be fixed in 3.13.1
1 Like