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

PHP 8.1 incompatibility - imagettfbbox(): Passing null to parameter #4 ($string) of type string is deprecated in Image.php #20654

Closed
tsteur opened this issue May 3, 2023 · 1 comment
Labels
duplicate For issues that already existed in our issue tracker and were reported previously.

Comments

@tsteur
Copy link
Member

tsteur commented May 3, 2023

vendor/szymach/c-pchart/src/Image.php(236): Deprecated - imagettfbbox(): Passing null to parameter #4 ($string) of type string is deprecated - Matomo 4.14.3-b1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) [internal function]: Piwik\ErrorHandler::errorHandler(),#1/vendor/szymach/c-pchart/src/Image.php(236),#2/vendor/szymach/c-pchart/src/Draw.php(2289),#3/plugins/ImageGraph/StaticGraph/GridGraph.php(312),#4/plugins/ImageGraph/StaticGraph/Evolution.php(24),#5/plugins/ImageGraph/API.php(506),[internal function]: Piwik\Plugins\ImageGraph\API->get(),#7/core/API/Proxy.php(244),#8/core/Context.php(28),#9/core/API/Proxy.php(335)

After upgrading to PHP 8.1 above warning is showing up in the logs. This is all the information we have.

@tsteur tsteur 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 May 3, 2023
@michalkleiner
Copy link
Contributor

Hi @tsteur,

thank you for reporting this. Looking through the code, this is also the same source of the deprecation when a data series doesn't have a description. I will mark this as a duplicate of #20655 as when that is resolved this issue should also get resolved.

@michalkleiner michalkleiner closed this as not planned Won't fix, can't repro, duplicate, stale May 4, 2023
@michalkleiner michalkleiner added duplicate For issues that already existed in our issue tracker and were reported previously. 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 May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate For issues that already existed in our issue tracker and were reported previously.
Projects
None yet
Development

No branches or pull requests

2 participants