Piwik Version: 3.0.0
MySQL Version: 5.5.53
After I upgrade Piwik to v3.0.0, I get some errors.
I have to disable the Core Plugin "UserCountry" because, if i activate this Plugin, Piwik stops the tracking.
When the Plugin is activated, in the php Error Log I get the Error:
PHP Fatal error: Cannot redeclare class Piwik\Plugins\UserCountry\LocationProvider\DefaultProvider in [...]/piwik/plugins/UserCountry/LocationProvider/Default.php on line 0
So, I have to deactivate the Plugin. With that, Piwik is tracking the website user. Without that, if the plugin is active, Piwik determines the tracking of the website User.
Also, if the UserCountry Plugin is activated, I can't access the following pages in Piwik:
I only got a blank page.
since the Update, I also get this PHP Error Message sometimes:
PHP Fatal error: Call to undefined method Piwik\Plugins\CorePluginsAdmin\CorePluginsAdmin::isMarketplaceEnabled() in [...]/piwik/plugins/CorePluginsAdmin/Tasks.php on line 1
Piwik 3.0.0 works only, when I uncomment in all .htaccess Files the last line:
Without that, I can't see anything at the pages.
I am also seeing this same error on my newly update Piwik 3.0.0 instance and can confirm I can see the System Check again with UserCountry (and UserCountryMap) plugins disabled.
As I'm not really a power user of Piwik, all I can really add is: I miss the map. :)
For the IsMarketplaceEnabled problem please delete the file
piwik/plugins/CorePluginsAdmin/Tasks.php. It should not be there anymore.
For redeclare class maybe have a look at https://github.com/piwik/piwik/issues/10378 . Does this help?
@tsteur, as I've said, I'm not a web guru or anything (mainly a Fortran programmer), but I took a look at #10378 and as near as I can tell, my php instance has OPcache enabled, but xcache is not. So I'm not hitting that. (Well, as far as I can decode Dreamhost and my phpinfo page.)
I guess the next question is how do I know if there is another cacher on? I see in my global.ini.php file that there is a [Cache] section, and backend is set to "chained". Should I fiddle with that? Or with RedisCache? (I looked in config.ini.php and I saw no cache in that file at all.)
Thank you! Deleting the file
solves the "IsMarketplaceEnabled" Problem.
No, the #10378 doesn't fix my UserCountry Problem. I only use opcache.
But I have had a look at the piwik files at github and I saw that here at github is no file like
So, I delete this file also and my problems are fixed now.
Thank you very very much for your help!
Ah. Yup. That gets rid of the error for me too. I'm wondering if the upgrade to 3.0.0 also should require a find command to remove files that are old and no longer part of Piwik?
Also, my Country Map doesn't seem to be working at the moment (stuck at loading map) but it might be one of those "Wait 24 hours" things?
Piwik automatically deletes no longer needed files usually but there may be problems when there are no write permissions for Piwik to delete the files. In this case we would need to ideally show a list of commands after installation so users can copy paste and delete it.
Re the map and the redeclare class feature it is hard to tell without being able to debug on the server. Maybe you can give us access to your server and to Piwik?
In my case, I update Piwik manually. I can't update it automatically because I have many Website in Piwik and it's better for me to update manually to avoid Errors.
When I do the update, I download the latest piwik.zip and unzip it directly on the Server. But If I only unzip the new files, the old wouldn't deleted. I don't know If Piwik would delete the old files, when I make the update over the Piwik Backend automatically, but this is no way for me.
But now, I knew that there can be problems after update Piwik manually, if there are old files in the Piwik directories and that I have to check it after every update. And if there are problems, I have to compare the files on my server with the files at github.
Wait a little bit. But I think that you can already see some data at the County Map now.
At some point we'll make the System check display all files that are there but should be deleted: https://github.com/piwik/piwik/issues/11087
@Chriz1083 Well, I eventually got the maps working. I'm not sure how, but I guess just clicking buttons and turning things on and off works. shrug
@mattab That sounds great, especially as I upgrade with the unzip method on your site. I'm guessing it's not quite as robust during big updates like 2->3. My install is pretty boring so I'm guessing I could do a diff between piwik.zip expanded and my current install and figure out what is old and unneeded...but an automatic tool would be great!