-
-
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
Fix possible error when generating reports for custom dimensions #18608
Comments
Marking this as a regression as it used to work on older PHP versions and now prevents us from sending scheduled reports. |
Hm. I wonder if that might be an edge case maybe. I did run all tests on PHP 8 / 8.1 and fixed all errors / warnings that occurred. So either this case isn't handled by any test, or it's a special case. Are you able to look up the scheduled reports definition so I can try to reproduce that locally? When looking at the code it might actually be a more complex issue. As you can see in the stack trace the API method Lines 498 to 507 in 556aada
matomo/core/DataAccess/ArchiveSelector.php Lines 371 to 374 in 88faa0a
Logically it would be correct to handle an empty string the same as Btw. are warnings disabled? That code should have produced a warning on PHP 7 already. |
@sgiehl below the definition
I don't think it produced a warning before but it's possible. Usually AFAIK we get emails when there's any warning during archiving. |
This is on PHP 8.
The text was updated successfully, but these errors were encountered: