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

Warning - A non-numeric value encountered in Metrics Formatter #19954

Open
tsteur opened this issue Nov 6, 2022 · 3 comments
Open

Warning - A non-numeric value encountered in Metrics Formatter #19954

tsteur opened this issue Nov 6, 2022 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@tsteur
Copy link
Member

tsteur commented Nov 6, 2022

Got below error in our account . URL was index.php?module=CoreHome&action=index&idSite=12&period=week&date=today#?period=week&date=today&category=Dashboard_Dashboard&subcategory=1 but it's a custom dashboard where I have goals in there etc.

core/Metrics/Formatter.php(161): Warning - A non-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) #0/core/Metrics/Formatter.php(161),#1/plugins/CoreHome/Columns/Metrics/ConversionRate.php(41),#2/plugins/CoreVisualizations/Visualizations/Sparklines.php(259),#3/plugins/CoreVisualizations/Visualizations/Sparklines.php(108),#4/core/Plugin/Report.php(320),#5/plugins/CoreHome/Controller.php(60),[internal function]: Piwik\Plugins\CoreHome\Controller->renderReportWidget(),#7/core/FrontController.php(631),#8/core/FrontController.php(169),#9/core/dispatch.php(32)

@tsteur tsteur added the Bug For errors / faults / flaws / inconsistencies etc. label Nov 6, 2022
@heurteph-ei
Copy link

Is it the same as #19963?

@sgiehl
Copy link
Member

sgiehl commented Nov 8, 2022

@tsteur Might be hard to find the reason why a non numeric value occurs for the conversion rate.
We could though change the formatter to check if the given value is numeric and use 0 otherwise maybe.

@tsteur
Copy link
Member Author

tsteur commented Nov 8, 2022

Thanks. That actually didn't happen when comparing but maybe it's related to the other regressions. It only started with the recent Matomo 4.12 release. We could always see if it still happens after all the other regression fixes and #19970

@sgiehl sgiehl added this to the For Prioritization milestone Nov 9, 2022
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

3 participants