ograssini
(Oswaldo)
August 16, 2022, 1:35pm
1
Hi all,
I tried to run the invalidate report using a command line and I got this message:
INFO [2022-08-16 13:23:08] 5512 Invalidating year periods in 2021-05-01,2021-05-31 [segment = ]…
WARNING [2022-08-16 13:23:08] 5512 C:\Websites\matomo\vendor\monolog\monolog\src\Monolog\Logger.php(329): Warning - Array to string conversion - Matomo 4.10.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
Does any one know how to fix it?
Thank you
Oswaldo
It seems like a bug…
Which version of PHP do you use? 8.x?
ograssini
(Oswaldo)
August 17, 2022, 1:08pm
3
Hi Phlippe,
I’m using PHP 8.0.16
I created an issue in the Matomo GitHub repo:
opened 01:37PM - 17 Aug 22 UTC
Potential Bug
## Expected Behavior
No warning in report invalidation
## Current Behavior
… > Hi all,
> I tried to run the invalidate report using a command line and I got this message:
>
> `INFO [2022-08-16 13:23:08] 5512 Invalidating year periods in 2021-05-01,2021-05-31 [segment = ]…`
> `WARNING [2022-08-16 13:23:08] 5512 C:\Websites\matomo\vendor\monolog\monolog\src\Monolog\Logger.php(329): Warning - Array to string conversion - Matomo 4.10.1 - Please report this message in the Matomo forums: https://forum.matomo.org/ (please do a search first as it might have been reported already)`
>
> Does any one know how to fix it?
>
> Thank you
> Oswaldo
## Possible Solution
## Steps to Reproduce (for Bugs)
## Context
https://forum.matomo.org/t/invalidate-report-error-message/47006
## Your Environment
* Matomo Version: 4.10.1
* PHP Version: 8.0.16
* Server Operating System:
* Additionally installed plugins:
@ograssini Question from Stefan Giehl (Matomo team):
Do you know the exact command that was executed? Otherwise it might be hard to reproduce.
→ The best would be to reply in the GitHub issue
ograssini
(Oswaldo)
August 17, 2022, 2:33pm
6
Here is the command I have used:
> php /console -vvv core:invalidate-report-data --dates=2021-05-01,2021-05-31 --sites=4
The issue seems to be taken into account and a fix is in route to be found…
The issue has been fixed, and will be delivered in the 4.12 version of Matomo.
If you wan, you can apply now (in the code of your own installation) the fix available at:
matomo-org:4.x-dev
← matomo-org:m19638
opened 07:32AM - 18 Aug 22 UTC
### Description:
fixes #19638
### Review
* [ ] [Functional review done]… (https://developer.matomo.org/guides/pull-request-reviews#functional-review-done)
* [ ] [Potential edge cases thought about](https://developer.matomo.org/guides/pull-request-reviews#potential-edge-cases-thought-about) (behavior of the code with strange input, with strange internal state or possible interactions with other Matomo subsystems)
* [ ] [Usability review done](https://developer.matomo.org/guides/pull-request-reviews#usability-review-done) (is anything maybe unclear or think about anything that would cause people to reach out to support)
* [ ] [Security review done](https://developer.matomo.org/guides/security-in-piwik#checklist)
* [ ] [Wording review done](https://developer.matomo.org/guides/pull-request-reviews#translations-wording-review-done)
* [ ] [Code review done](https://developer.matomo.org/guides/pull-request-reviews#code-review-done)
* [ ] [Tests were added if useful/possible](https://developer.matomo.org/guides/pull-request-reviews#tests-were-added-if-usefulpossible)
* [ ] [Reviewed for breaking changes](https://developer.matomo.org/guides/pull-request-reviews#reviewed-for-breaking-changes)
* [ ] [Developer changelog updated if needed](https://developer.matomo.org/guides/pull-request-reviews#developer-changelog-updated-if-needed)
* [ ] [Documentation added if needed](https://developer.matomo.org/guides/pull-request-reviews#documentation-added-if-needed)
* [ ] Existing documentation updated if needed
ograssini
(Oswaldo)
August 23, 2022, 7:13pm
9
Hi Philippe,
I appreciate your help and the quick fix for this issue. I’ll wait for 4.12 version.
Thank you
Oswaldo
1 Like