IntranetGeoIP.data.php -- File integrity check failed

Hello all,

I installed today Matomo and installed “Intranet Geo IP” plugin.
After installation I added one location to IntranetGeoIP.data.php and transferred it via SFTP back to Matomo server.
But now I get below error on System Check.
File integrity check failed and reported some errors. You should fix this issue and then refresh this page until it shows no error.
Files were found in your Matomo but we didn’t expect them.
–> Please delete these files to prevent errors. <–

File to delete: config/IntranetGeoIP.data.php

To delete all these files at once, you can run this command:
rm “/var/www/html/config/IntranetGeoIP.data.php”

But I cannot delete this file, cause it holds the subnets.
Is there any way to run a integrity check on this file to avoid this kind of error?

Many thanks in advance.

Regards,
Chris

Hi,

The plugin author can select a number of files that are ignored by the Integrity-check.

This has already been reported to the author of the plugin and there is already a fix for it, so the author only needs to merge it and release a new version.

Until then you can manually apply the change (create a new file config/config.php in the plugin directory):

diff --git a/config/config.php b/config/config.php
new file mode 100644
index 0000000..31bf3d8
--- /dev/null
+++ b/config/config.php
@@ -0,0 +1,7 @@
+<?php
+
+return array(
+  'fileintegrity.ignore' => DI\add(array(
+    'config/IntranetGeoIP.data.php'
+  ))
+);