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

PHP Fatal error: GeoIP2 name already in use #12916

Closed
HealingRooms opened this issue May 15, 2018 · 7 comments
Closed

PHP Fatal error: GeoIP2 name already in use #12916

HealingRooms opened this issue May 15, 2018 · 7 comments
Labels
duplicate For issues that already existed in our issue tracker and were reported previously.

Comments

@HealingRooms
Copy link

There is a problem after the upgrade from 3.2.1. to 3.5.0 which may be related to the following MySQL error message:

PHP Fatal error: Cannot declare class Piwik\Plugins\GeoIp2\GeoIp2, because the name is already in use in /home/......../public_html/piwik/plugins/GeoIp2/GeoIp2.php on line 0

This error message is logged when the dashboard page is attempted to be loaded.

@fdellwing
Copy link
Contributor

Please remove the old GeoIP2 Plugin (from the Marketplace) as Matomo 3.5.0 brings it own GeoIp2 Plugin.

@HealingRooms
Copy link
Author

HealingRooms commented May 15, 2018 via email

@sgiehl
Copy link
Member

sgiehl commented May 15, 2018

You need to remove the folder plugins\GeoIP2 within the matomo directory. Matomo should now contain plugins\GeoIp2 which should provide full support for GeoIP2 databases from Maxmind. But you may need to reconfigure your geo location settings within Matomo.

@Findus23
Copy link
Member

And you may need to remove GeoIP2 from the config/config.ini.php

See also #12846

@sgiehl sgiehl added the duplicate For issues that already existed in our issue tracker and were reported previously. label May 15, 2018
@sgiehl sgiehl closed this as completed May 15, 2018
@HealingRooms
Copy link
Author

Thank you. The deletion of the two (2) GeoIP2 folders did the trick.

/plugins/GeoIp2
/plugins/GeoIP2

I had commented out their reference in the config/config.ini.php file as well.

@Findus23
Copy link
Member

Findus23 commented May 15, 2018

Keep in mind that if you also deleted the new implementation (GeoIp2), geolocalisation will be broken if you stop using the old geoip.

@sgiehl
Copy link
Member

sgiehl commented May 15, 2018

@HealingRooms you should reupload the GeoIp2 plugin from the release package as Matomo might not work properly without it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate For issues that already existed in our issue tracker and were reported previously.
Projects
None yet
Development

No branches or pull requests

4 participants