Problem/Motivation
Despite release claiming compatibility with Drupal ^9.0 || ^10, at least one setting does not work with Drupal <9.3.
When matomo.js caching is turned on, website crashes with error in PHP log.
Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: "You have requested a non-existent service "file_url_generator".
Service in question was implemented in Drupal 9.3.
Steps to reproduce
Install Matomo, configure it and turn on matomo.js caching in settings. Clear caches and visit website.
Proposed resolution
Bump version compatibility to ^9.3 || ^10.
Comments
Comment #2
vinodhini.e commentedComment #3
vinodhini.e commentedComment #6
jeeva r commentedComment #7
vinodhini.e commentedHi,
I have merged the code changes that provide compatibility with both Drupal 10 and 11. Thanks.
Comment #8
jeeva r commentedComment #9
j-leeI think, the Drupal 11 fixes should go to the 2.0 branch?
Comment #10
grimreaperComment #11
grimreaperDeprecations for 8.x-1.x branch had been fixed in #3546318: Manual Drupal 11 compatibility fixes for matomo 8.x-1.x.
But 8.x-1.x remains marked as compatible with D9 which is not supported.
I will create a new MR because the https://git.drupalcode.org/project/matomo/-/merge_requests/76/ is doing what had been done in the other issue but less efficiently.
I will also increase minimum requirements so no more need of the deprecations helper if possible.
Comment #18
grimreaper