WARNING: www/demo.piwik.org/core/Piwik.php(122): Warning - A non-numeric value encountered - Matomo 3.10.0-rc1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
I searched the log for newly added or changed calls to this function, but was not able to find anything recent. So it might be a side effect of another change.
git log -SgetPercentageSafe -- . git log -GgetPercentageSafe -- .
@mattab I already though a few times that it might be helpful to add an option that can be temporarily enabled (with a system check urging everyone to disable it again) that will display proper stack traces to all error messages.
That would make debugging far easier as the whole error message people post isn't that helpful in many cases when the php error or warning just occurs in some helper function or in twig.
It could also be just logged to the file. Such things aren't easy to troubleshoot etc. Best to move this to 3.11
To find the root cause for these issues better we have changed the file log to include a trace in https://github.com/matomo-org/matomo/pull/14961
So when this issue happens again be good to get a trace and then we can maybe look into this further.
WARNING: /var/www/matomo/html/matomo/core/Piwik.php(122): Warning - A non-numeric value encountered - Matomo 3.12.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Goals, Action: getItemsName, In CLI mode: false)
Can you enable logging to file see https://matomo.org/faq/troubleshooting/faq_115/ and then maybe it will be logging a backtrace into the
Basically you need to add
[log] log_writers = screen log_writers = file
Any updates on this issue? We keep seeing the error.
It occurs 10 times in a row. Please see image.
Reopening as the error shows up in 3.13.0