Thanks Amagan, The patch seems to work. It did not apply at first. I had to reroll.
- 🇩🇪Germany TimoSTR
Hey - I was trying the patch. But no data has been sent to Matomo. Any idea if we need a certain serach api version?
Cheers
We recently updated to PHP8.2 and to my surprise our site went down because of small error in this patch.
The error:
TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, null given in str_replace() (regel 494 van /web/modules/contrib/matomo/matomo.module)Which is where the get parameter 'search'. I've fixed it with a simple nullesce operator to return an array if null.