-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Realtime visits error (see #19129) #20906
Comments
Hey @AdamSGit, sorry to hear you have the same problem. Are you maybe able to provide some further details? It looks like you and the other one having that issue are both using MariaDB. As I'm currently testing with MySQL, maybe that could be the reason. |
Ok, found the cause. Mbstring module was missing in php installation. The error location is in if (0 === stripos($query['sql'], 'SELECT')) {
$query['sql'] = 'SELECT /* Live.getCounters */' . mb_substr($query['sql'], strlen('SELECT'));
} Which, without mbstring module installed, would result to the following query : Don't know if this is an exception, or if others parts of the code use the same logic, but it would need either :
|
Thanks for the update @AdamSGit |
I've now checked that locally again. Matomo works smoothly with mbstring disabled. mbstring methods are actually even used all across Matomo so it would be weird if that only fails in the reatime reports, but work everywhere else. |
I got exactly the same error that is described in issue #19129 after migrating my matomo installation from php 7.4 to 8.1 in a docker container. The original issue also seemed to be related to php >= 8. The issue was closed without any solution or further investigation a year ago.
Environment
The text was updated successfully, but these errors were encountered: