WordPress Fatal error with matomo and php 8.1
-
When I switch from PHP 7.4 to PHP 8.1 I get a Fatal error:
Fatal error: Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /wp-content/plugins/matomo/app/vendor/php-di/php-di/src/Container.php on line 210
If I switch back to PHP 7.4 everything is ok again.
Or if I delete the “matomo” folder in the plugins under PHP 8.1, everything works as usual.
Does Matomo not run with PHP 8.1 or is there a workaround or do I just have to wait for an update?
My System:
WordPress 6.2.2
Matomo 4.15.0
- The topic ‘WordPress Fatal error with matomo and php 8.1’ is closed to new replies.