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

[Bug] Matomo 5.0.2 : /core/Filechecks.php(153): Deprecated - trim(): Passing null to parameter #1 ($string) of type string is deprecated #22101

Closed
4 tasks done
heurteph-ei opened this issue Apr 11, 2024 · 4 comments · Fixed by #22102
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@heurteph-ei
Copy link

What happened?

https://forum.matomo.org/t/warning-core-filechecks-php-153/55817
Matomo update from Matomo 5.0.2 to Matomo 5.0.3.
After updating to Matomo 5.03 following message is shown in “Alle Webseiten”:

WARNING: /core/Filechecks.php(153): Deprecated - trim(): Passing null to parameter #1 ($string) of type string is deprecated - Matomo 5.0.2 (Module: CoreUpdater, Action: newVersionAvailable, In CLI mode: false)

What should happen?

No warning message.

How can this be reproduced?

Matomo update from Matomo 5.0.2 to Matomo 5.0.3.
Then go to “Alle Webseiten”:

Matomo version

5.0.2 > 5.0.3

PHP version

probably 8.x

Server operating system

unknown

What browsers are you seeing the problem on?

No response

Computer operating system

No response

Relevant log output

No response

Validations

@heurteph-ei heurteph-ei added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Apr 11, 2024
@MatomoForumNotifications

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/warning-core-filechecks-php-153/55817/2

@michalkleiner michalkleiner added Bug For errors / faults / flaws / inconsistencies etc. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Apr 11, 2024
@michalkleiner michalkleiner self-assigned this Apr 11, 2024
@michalkleiner
Copy link
Contributor

Thanks for the report @heurteph-ei. I've prepared a small PR addressing this issue.

@michalkleiner michalkleiner removed their assignment Apr 11, 2024
@michalkleiner
Copy link
Contributor

@heurteph-ei thanks again for the report, a fix for this will be in 5.1.0.

@sgiehl sgiehl closed this as completed Apr 14, 2024
@innocraft-automation innocraft-automation added this to the 5.1.0 milestone Apr 15, 2024
@MatomoForumNotifications

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/error-message-after-update/58411/2

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
5 participants