@sgiehl opened this Pull Request on November 8th 2022 Member

Description:

When viewing a goals report in comparison mode I got the following error in log:

WARNING CoreHome[2022-11-08 13:38:15 UTC] [871ee] /srv/matomo/core/Metrics/Formatter.php(161): Notice - A non well formed numeric value encountered - Matomo 4.12.3 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) <a href='/0'>#0</a>/core/Metrics/Formatter.php(161),<a href='/1'>#1</a>/plugins/CoreHome/Columns/Metrics/ConversionRate.php(42),<a href='/2'>#2</a>/plugins/CoreVisualizations/Visualizations/Sparklines.php(259),<a href='/3'>#3</a>/plugins/CoreVisualizations/Visualizations/Sparklines.php(108),<a href='/4'>#4</a>/core/Plugin/Report.php(320),<a href='/5'>#5</a>/plugins/CoreHome/Controller.php(60),[internal function]: Piwik\Plugins\CoreHome\Controller->renderReportWidget(),<a href='/7'>#7</a>/core/FrontController.php(631),<a href='/8'>#8</a>/core/FrontController.php(169),<a href='/9'>#9</a>/core/dispatch.php(32)

Turned out, that in comparison mode, the values seem to be formatted twice. That actually caused the numbers to be incorrect. Instead of 1,8% it was displayed as 100%

Might be related to #19954

Review

This Pull Request was closed on November 9th 2022
Powered by GitHub Issue Mirror