Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken inactive GeoIP2 plugin generates error messages and impedes changing of various settings #19489

Closed
KHReinhardt opened this issue Jul 7, 2022 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@KHReinhardt
Copy link

Every time we try to open Administration/System/Geolocation or Administration/Diagnostic/System Check we get the following error message:

An error occurred
Template "@GeoIp2/serverModule.twig" is not defined.

The plugin is inactive due to usupported version. If we try to uninstall it though, we get a Server 500 error with following log entrances (paths edited):

[07-Jul-2022 10:38:21 UTC] PHP Fatal error:  require_once(): Failed opening required '[...]matomo/plugins/CoreVisualizations/JqplotDataGenerator.php' (include_path='[...]matomo\vendor/pear/pear_exception; [...]matomo\vendor/pear/console_getopt; [...]matomo\vendor/pear/pear-core-minimal/src; [...]matomo\vendor/pear/archive_tar;.;C:\php\pear') in [...]matomo\plugins\CoreVisualizations\CoreVisualizations.php on line 14
[07-Jul-2022 10:38:25 UTC] PHP Warning:  require_once( [...]): failed to open stream: No such file or directory in [...]matomo\plugins\CoreVisualizations\CoreVisualizations.php on line 14

"Configuration for server variables used by GeoIP 2 server modules" in Administration/System/General Settings is not set.

We did search the internet, matomo forum and git issues, unfortunatly with no success so far.

Expected Behavior

An inactive plugin does not influence settings. It is possible to uninstall an inactive plugin.

Context

We cannot currently switch to the standard geolocation method since we cannot open geolocation settings. We cannot run System Check

Our Environment

  • Matomo Version: 4.10.1
  • PHP Version: 7.2.32
  • MySQL version: 8.0.28
  • Server Operating System: Windows
@KHReinhardt KHReinhardt added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Jul 7, 2022
@sgiehl
Copy link
Member

sgiehl commented Jul 7, 2022

Hi @KHReinhardt I tried to reproduce the issue, but unfortunately I wasn't able to. Disabling the GeoIp2 plugin doesn't cause any issues for me. The geolocation page is still working. Even removing the template file GeoIp2/serverModule.twig doesn't cause any issues.
Did you maybe try to manually reupload all Matomo files? Maybe some files are missing or got corrupted

@sgiehl sgiehl added the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label Jul 11, 2022
@KHReinhardt
Copy link
Author

KHReinhardt commented Jul 19, 2022

Thank you for the swift reply. We checked the installation and you were right, the files were missing. We placed them back in place and we could disable the plugin. Thank you for your help!

@sgiehl sgiehl added answered For when a question was asked and we referred to forum or answered it. and removed Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants