如何修复 Matomo/Piwik update configureSegments() must be public

问题:

尝试更新你的 Matomo(以前称为 Piwik)安装时,你看到类似这样的错误消息

matomo_configuresegments_error.txt
Fatal error: Access level to Piwik\Plugins\ExampleTracker\Columns\ExampleActionDimension::configureSegments() must be public (as in class Piwik\Columns\Dimension) in /usr/www/users/user/piwik/plugins/ExampleTracker/Columns/ExampleActionDimension.php on line 57

解决方案

删除 Matomo 安装文件夹中的 plugins/ExampleTracker 文件夹。它包含一个不再需要的旧版本 Piwik 的示例插件。

修复的原始来源:Matomo 论坛


Check out similar posts by category: PHP