Closed sebastienserre closed 2 years ago
Hi @sebastienserre . Thank you for taking the time to create this issue. Have any of the Composer libraries been upgraded on your server? Matomo's composer.json file specifies "monolog/monolog": "~1.11"
and "symfony/monolog-bridge": "~2.6.0"
for the two libraries mentioned in your error message. It appears that monolog/monolog added the bool return type to the AbstractProcessingHandler::handle
function in version 2.0.0 and symfony/monolog-bridge didn't add support for Monolog 2 until version 5.0.0. You can try upgrading symfony/monolog-bridge to at least version 5.0.0, but I wouldn't recommend that as Matomo only supports up to version 2.6.13 at the moment. It would probably be easiest to downgrade monolog/monolog to version 1.27.1.
As this is a library conflict and not a Matomo code problem, I'm going to close this issue, but please feel free to reach out if you feel this issue needs to be reopened.
Hi @snake14,
I'm using the WordPress plugin, I've never used Symfony, If Matomo Plugin needs it then it has to work... without any further action ... or describe what I need to do. (I'm on a shared hosting)
Regards
@sebastienserre I apologise for the inconvenience. I'm not familiar with the WordPress plugin. @mattmary Do you know what might be causing the library mismatch with WordPress or how it might be addressed?
Hello @sebastienserre
It looks like you have a conflict between the Monolog version embed in Matomo and the one embed in one of your others plugins. We already have identified some of them. Do you use one of them? https://matomo.org/faq/wordpress/which-plugins-is-matomo-for-wordpress-known-to-be-not-compatible-with/
If not, would you mind try to disable one by one our plugins and check when this issue disappears?
Unfortunately, we don't have a lot of solution so far with Matomo 4: either disable this plugin, or, if it is required, we would ask you to switch to Matomo on premise. This problem should be fixed in the next major Matomo release, which should be released soon. We are working on it!
Kind regards
Mat
Hello @mattmary
Do you know which version /release number will upgrade Monolog version in Matomo WordPress plugin ?
Thank you
Hello @sebastienserre
We do not plan to upgrade the Monolog version to embed with Matomo for the reason that it could also create problems with plugins which embed the Monolog version 1. We are looking for a solution which will allow having a dedicated version of Monolog not in conflict with the others installed versions. This is scheduled in the Matomo 5.0 release. The issue is here https://github.com/matomo-org/matomo/issues/16905
We'll release the 4.12.0 version probably next week. Then, the following release will be the 5.0 version.
Kind regards
Mat
Hello, I'm trying to export measurable from WordPress plugin to on-premise but have this Fatale error: