matomo-org / plugin-AnonymousPiwikUsageMeasurement

Help making Matomo better by sending anonymized usage data to the creators the project, and/or to your own Matomo instance and/or to any other Matomo instance
https://plugins.matomo.org/AnonymousPiwikUsageMeasurement
GNU General Public License v3.0
4 stars 12 forks source link

Fix plugin might break the Matomo installer if shipped together #65

Closed sgiehl closed 2 years ago

sgiehl commented 2 years ago

Description:

The config tries to check a system setting. If Matomo is not yet installed, but the plugin is already available (like in core tests), the installer might throw an error as the config tries to access the database. We can simply skip that check in that case, as no system setting can be available.

This might actually only be an issue occurring in tests, at least I wasn't able to reproduce that locally.

Review