@HealingRooms opened this Issue on May 15th 2018

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 commented on May 15th 2018 Contributor

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

@HealingRooms commented on May 15th 2018

Please clarify how I might resolve this (removing the GeoIP Plugin just for Matomo / Piwik) independently of the Matomo dashboard… unless you’re suggesting that it needs to be done from the cPanel dashboard, which would disable the GeoIP Plugin elsewhere on the website (which would be inappropriate).

Bryce Morrison
Healing Rooms Ministries
support@healingrooms.com
(509) 456-0517 ext. 218
Tu-Th 8:00 – 4:00 PST (GMT-8)

From: Fabian Dellwing <notifications@github.com>
Sent: Tuesday, May 15, 2018 9:55 AM
To: matomo-org/matomo <matomo@noreply.github.com>
Cc: Bryce Morrison <support@healingrooms.com>; Author <author@noreply.github.com>
Subject: Re: [matomo-org/matomo] PHP Fatal error: GeoIP2 name already in use (#12916)

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


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/matomo-org/matomo/issues/12916#issuecomment-389237978, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGmhjzRc1cGLzJU2uKAP4477eFiBfSh4ks5tywhUgaJpZM4T_6Y8.

@sgiehl commented on May 15th 2018 Member

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 commented on May 15th 2018 Member

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

See also https://github.com/matomo-org/matomo/issues/12846

@HealingRooms commented on May 15th 2018

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 commented on May 15th 2018 Member

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

@sgiehl commented on May 15th 2018 Member

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

This Issue was closed on May 15th 2018
Powered by GitHub Issue Mirror