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 in GridGraph #21256

Closed
tsteur opened this issue Sep 13, 2023 · 3 comments
Closed

PHP 8.1 incompatibility in GridGraph #21256

tsteur opened this issue Sep 13, 2023 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. duplicate For issues that already existed in our issue tracker and were reported previously.

Comments

@tsteur
Copy link
Member

tsteur commented Sep 13, 2023

Got below Deprecated message. This is in Matomo 4.x. Not sure if this was maybe already fixed in Matomo 5?

vendor/szymach/c-pchart/src/Image.php(236): Deprecated - imagettfbbox(): Passing null to parameter #4 ($string) of type string is deprecated - Matomo 4.15.2-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) | /var/www/html/vendor/szymach/c-pchart/src/Image.php(236): Deprecated - imagettfbbox(): Passing null to parameter #4 ($string) of type string is deprecated - Matomo 4.15.2-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)
/var/www/html/vendor/szymach/c-pchart/src/Image.php(236): Deprecated - imagettfbbox(): Passing null to parameter #4 ($string) of type string is deprecated - Matomo 4.15.2-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)
 


@tsteur tsteur added the Bug For errors / faults / flaws / inconsistencies etc. label Sep 13, 2023
@sgiehl
Copy link
Member

sgiehl commented Sep 13, 2023

Should be fixed with Matomo 5. See #20654 or #20806

@sgiehl sgiehl closed this as not planned Won't fix, can't repro, duplicate, stale Sep 13, 2023
@sgiehl sgiehl added the duplicate For issues that already existed in our issue tracker and were reported previously. label Sep 13, 2023
@tsteur
Copy link
Member Author

tsteur commented Sep 17, 2023

@sgiehl will these 2 Deprecated errors be fixed with that as well?

vendor/szymach/c-pchart/src/Draw.php(2451): Deprecated - preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated - Matomo 4.15.2-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/Draw.php(2451),#2/plugins/ImageGraph/StaticGraph/GridGraph.php(312),#3/plugins/ImageGraph/StaticGraph/Evolution.php(24),#4/plugins/ImageGraph/API.php(506),[internal function]: Piwik\Plugins\ImageGraph\API->get(),#6/core/API/Proxy.php(244),#7/core/Context.php(28),#8/core/API/Proxy.php(335),#9/core/API/Request.php(267)
 

vendor/szymach/c-pchart/src/Draw.php(2302): Deprecated - preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated - Matomo 4.15.2-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/Draw.php(2302),#2/plugins/ImageGraph/StaticGraph/GridGraph.php(312),#3/plugins/ImageGraph/StaticGraph/Evolution.php(24),#4/plugins/ImageGraph/API.php(506),[internal function]: Piwik\Plugins\ImageGraph\API->get(),#6/core/API/Proxy.php(244),#7/core/Context.php(28),#8/core/API/Proxy.php(335),#9/core/API/Request.php(267)

@sgiehl
Copy link
Member

sgiehl commented Sep 19, 2023

Yes. Those errors are all related to a missing series label and should be fixed.

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. 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