Hi,
As I don’t have the GeoIP extension installed and I don’t want to install it, how can I disable it ?
The reason is that, since upgrade to 1.9, the import_log.py script fails with the following error:
Fatal error:
Fatal error : Class ‘Piwik_UserCountry_LocationProvider’ not found in /opt/lampp/htdocs/piwik_1.9/core/Tracker/Visit.php on line 609
matthieu
(Matthieu Aubry)
October 16, 2012, 9:59pm
#2
Maybe the “UserCountry” plugin is disabled ? you dont need to setup GeoIP but indeed, I notice a bug that the tracking will fail if UserCountry plugin is disabled
eht16
October 17, 2012, 6:55am
#3
Hi,
I have the exact same problem as the OP.
Though I do have the UserCountry plugin enabled.
Any other hints/workarounds?
Hello Matt,
Activating the UserCountry Plugin fixed my problem.
Thanks you for your help.
eht16
October 17, 2012, 8:52am
#5
For me it doesn’t help, as said the UserCountry plugin is enabled.
In case it might help, here is my list of enabled plugins:
[PluginsInstalled]
PluginsInstalled[] = "Actions"
PluginsInstalled[] = "AdminOverview"
PluginsInstalled[] = "API"
PluginsInstalled[] = "CoreAdminHome"
PluginsInstalled[] = "CoreHome"
PluginsInstalled[] = "CorePluginsAdmin"
PluginsInstalled[] = "CoreUpdater"
PluginsInstalled[] = "CustomVariables"
PluginsInstalled[] = "Dashboard"
PluginsInstalled[] = "DoNotTrack"
PluginsInstalled[] = "ExampleAPI"
PluginsInstalled[] = "ExampleFeedburner"
PluginsInstalled[] = "ExamplePlugin"
PluginsInstalled[] = "ExampleRssWidget"
PluginsInstalled[] = "Feedback"
PluginsInstalled[] = "Goals"
PluginsInstalled[] = "ImageGraph"
PluginsInstalled[] = "Installation"
PluginsInstalled[] = "LanguagesManager"
PluginsInstalled[] = "Live"
PluginsInstalled[] = "Login"
PluginsInstalled[] = "MultiSites"
PluginsInstalled[] = "PDFReports"
PluginsInstalled[] = "PrivacyManager"
PluginsInstalled[] = "Provider"
PluginsInstalled[] = "Proxy"
PluginsInstalled[] = "Referers"
PluginsInstalled[] = "SEO"
PluginsInstalled[] = "SitesManager"
PluginsInstalled[] = "Transitions"
PluginsInstalled[] = "UserCountry"
PluginsInstalled[] = "UserCountryMap"
PluginsInstalled[] = "UserSettings"
PluginsInstalled[] = "UsersManager"
PluginsInstalled[] = "VisitFrequency"
PluginsInstalled[] = "VisitorInterest"
PluginsInstalled[] = "VisitsSummary"
PluginsInstalled[] = "VisitTime"
PluginsInstalled[] = “Widgetize”
eht16
October 17, 2012, 9:21am
#6
One more information in case it might be of any help: I’m using the GeoIP (PECL) variant.
Same problem here. I use a plain vanilla piwik installation for some time and tried to upgrade it to piwik 1.9.
Nothing has been counted since then. I’m getting the same fatal error on every request.
deeku
October 17, 2012, 6:13pm
#8
I have exactly the same problem - plain vanilla piwik installation and no new stats since I upgraded to 1.9. Logs show errors like:
[17-Oct-2012 18:06:38 UTC] PHP Fatal error: Class ‘Piwik_UserCountry_LocationProvider’ not found in /web/content/core/Tracker/Visit.php on line 609
Interestingly, when a plugin (any plugin) is activated or deactivated or some settings change, I see a visit reflected from one of the frequently visited sites I am tracking. The entire visit continues to be tracked, though no other visits from other unique visitors are reflected in Piwik.
[quote=JerryWho]
Same problem here. I use a plain vanilla piwik installation for some time and tried to upgrade it to piwik 1.9.
Nothing has been counted since then. I’m getting the same fatal error on every request.[/quote]
eht16
October 17, 2012, 6:26pm
#9
It seems our problem was also reported at:
opened 06:24PM - 17 Oct 12 UTC
closed 09:56AM - 23 Oct 13 UTC
Bug
Critical
A upgrade from 1.8.4 with the old GeoIP plugin enabled to the latest 1.9 throws … this error when attempting to track.
PHP Fatal error: Class 'Piwik_UserCountry_LocationProvider' not found in /path/to/core/Tracker/Visit.php on line 609
I am assuming it's a geoip issue.
The upgrade was done by replacing the entire installation folder with the 1.9 files and copying the config/config.ini.php from the old install.
I removed the old GeoIP plugin from the config.ini.php. Then ran the sql update script. The new Geolocation configuration is set to use (GeoIP (PECL). The error occurs with any Geo location setting. The GeoIPCity.dat file is in the Misc/ folder.
The system does track for about 30 seconds if I delete the tmp folder. Piwik regenerates the tmp folder and then it starts throwing the above error again.
Any ideas?
phoenix
October 17, 2012, 7:14pm
#10
Same problem, i have resolved the problem temporarly by adding this two line at the beggining of the file core/Tracker/Visit.php :
require_once PIWIK_INCLUDE_PATH . “/plugins/UserCountry/LocationProvider.php”;
require_once PIWIK_INCLUDE_PATH . “/plugins/UserCountry/UserCountry.php”;
The plugin is already enabled. I have upgraded the piwik installation from the site.
deeku
October 17, 2012, 7:36pm
#11
Worked for me. Country shows as Unknown, though.
matthieu
(Matthieu Aubry)
October 18, 2012, 7:49am
#12
We will release a new version in the next few days with the fix, sorry about that!
matthieu
(Matthieu Aubry)
October 21, 2012, 12:30pm
#13
Good news: GeoIP is now integrated in Piwik, enabling Accurate Visitors Geolocation in your Analytics reports. To enable GeoIP go to the Settings > Geolocation admin page, and follow the short instructions.
You can also get an even more accurate Country & City Database from here to enjoy top accuracy in detecting your visitors locations.
See also the documentation about Geolocation - Analytics Reports in Piwik.
I’ve upgraded to 1.9.1 today and everything seemed to work properly.
But suddenly I get the same error again.
Anybody has the same problem?