Hi there,
i am running several small sites and try now to have them tracked in one ‘neutral’ Piwik DB, eg a distinct domain different from any site’s domain. As only one site has a logging history that should not get lost, i moved this sites single Piwik DB to the new location (via table export/import) and copied the /piwik/ folder to the new location with Filezilla (passive mode). Several German blog posts recommended this way of transfering old data. Then I added two new sites to the new Piwik DB.
Works like a charm, except for two problems:
(1) The GeoIP/UserCountry Plugin does not work anymore. If activated, no tracking takes place on any of my sites, and calling the Geolocation menu item produces the following error:
Uninitialized string offset: 0 in /www/htdocs/xxxxxyyyyy/piwik/libs/MaxMindGeoIP/geoip.inc on line 627
I checked the forum, there used to be a similar problem around the 1.10.1 release. I’m running on 1.12, although the old DB has started in January 2013 (so propably as a 1.10.x). I downloaded a fresh piwik zip and replaced the /plugins/UserCountry folder manually, but no change. Is there any other fix I can try to use?
(2) URL calls to the login page are not working the way they used to, and should, propably. On logout and from the WP Piwik shortcut, I am directed to
http://xxxxyyyy.net/piwik/index.php?module=CoreHome&action=index&idSite=1&period=range&date=last7
instead of just http://xxxxyyyy.net/piwik. This produces the following error:
The requested website idSite is not found in the request, or is invalid. Please check that you are logged in Piwik and have permission to access the specified website.
which is strange as the id is correct. I have blocked anonymous access, though: If i turn it on, I get redirected to the stats, no problem. This happens accross browsers, so no cookie/temp files/cache issue, i guess. Also putting login_logout_url into the config.ini.php (as mentioned in another thread) did not help.
Any hints? I would use a clean install of everything if only i would not loose the piwik data from this one site… Glad for any help, pano