@fdellwing opened this Issue on March 21st 2019 Contributor

Sadly this error got not fixed with #14236. So if someone updates from 3.8.1 to 3.9.1 he still gets the error.

There is already one forum post about it: https://forum.matomo.org/t/update-from-v3-8-1-to-v3-9-1-failed/32215
I also noticed the problem on my second Matomo instance.

//cc @diosmosis

@Talkless commented on March 23rd 2019

Just got this error while upgrading to 3.9.1:

Matomo encountered an error: Call to undefined method Piwik\Plugin\Manager::getPluginDirectory() (which lead to: Circular dependency detected while trying to resolve entry 'Piwik\Twig')
@RolandSM commented on March 24th 2019

Got also on two instances this error...
After returning back all seems to work but I think the update is not complete?

@guytarr commented on March 25th 2019

After upgrade a 3.8.1 enterprise version to 3.9.0 enterprise version and another upgrade to 3.9.1 enterprise version UI show 3.9.1 but in database, core still in 3.8.1, and plugins like version_MediaAnalytics still in 3.3.1.

The archive job won't run because they are missing table :

Table 'matomo.matomo_log_media_plays' doesn't exist - in plugin MediaAnalytics

The ./console core:update didn't return anything

I've this php errors
PHP Fatal error: Class 'Piwik\Plugin' not found in [...]/htdocs/plugins/Installation/Installation.php on line 23

After adding
in Installation/Installation.php
use Piwik\Plugin;

It's ok
./console core:update work and everything seem fine (value core and plugins version up to the good file version of 3.9.1 release in database matomo_option)

@MackieeE commented on April 10th 2019

Much like Sh4d0wF1gh7, it was fine after returning to the same install script. It was marked as "already updated".

Unsure if actually complete however.

@larsen0815 commented on April 16th 2019

We are still on 3.8.1 because of this problem. Is there an expected date when this will be fixed?

@Findus23 commented on April 16th 2019 Member

@larsen0815 This bug has already been fixed with 3.9.1, but as during the update the old code (with the bug) is running, you will still see the error when upgrading to 3.9.1. But the next upgrade from 3.9.1 should then be fine.
See here: https://github.com/matomo-org/matomo/issues/14227#issuecomment-475303119

@fdellwing commented on April 16th 2019 Contributor

You can simply do a manual three step upgrade (https://matomo.org/docs/update/#the-manual-three-step-update) to avoid the problem. The error is part of the one click updater.

@larsen0815 commented on April 16th 2019

Ah ok. I was already using that workflow. Upgraded my dev system and got no errors that way.

This Issue was closed on April 16th 2019
Powered by GitHub Issue Mirror