Piwik auto update failed

[error] [client *] PHP Warning:  require(/var/www/vhosts/**/httpdocs/vendor/facebook/xhprof/xhprof_lib/utils/xhprof_lib.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /var/www/vhosts/**/httpdocs/vendor/composer/autoload_real.php on line 58, referer: http://**/index.php?module=CoreUpdater&action=oneClickUpdate
[error] [client *] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required '/var/www/vhosts/**/httpdocs/vendor/facebook/xhprof/xhprof_lib/utils/xhprof_lib.php' (include_path='/var/www/vhosts/**/httpdocs/vendor/phpunit/php-text-template:/var/www/vhosts/**/httpdocs/vendor/phpunit/phpunit-mock-objects:/var/www/vhosts/**/httpdocs/vendor/phpunit/php-timer:/var/www/vhosts/**/httpdocs/vendor/phpunit/php-file-iterator:/var/www/vhosts/**/httpdocs/vendor/phpunit/php-code-coverage:/var/www/vhosts/**/httpdocs/vendor/phpunit/phpunit:/var/www/vhosts/**/httpdocs/vendor/symfony/yaml:.:') in /var/www/vhosts/**/httpdocs/vendor/composer/autoload_real.php on line 58, referer: http://**/index.php?module=CoreUpdater&action=oneClickUpdate

Did you guys check your auto update, before you release an update?

Edit: xhprof is needed in production after update to 2.6 · Issue #6127 · matomo-org/matomo · GitHub

Thanks for the report! This is an unfortunate bug that was my fault as the release manager.

I’m releasing right now 2.6.1 which fixes the issue.

Sorry about the trouble and this problem should not occur anymore. Anyway thanks for reporting it so fast after the release.

I also did the same experience.
piwik/vendor/facebook do not exist.

This has been fixed in Piwik 2.6.1 - please upgrade and it will work!

Thx for your fast fix :slight_smile:

What’s the procedure for upgrading to 2.6.1? Since the auto update of 2.6.0 failed, I have a blank screen for Piwik. Clicking the 2.6.1 link above just takes me to a release notice, so it would be helpful to know what terminal command or other approach I can use to see if I can recover the installation through 2.6.1. Thanks.

I worked out the (somewhat) obvious answer after posting this question: Go to the download page to get the latest 2.6.1. version of Piwik and reinstall. All appears to be running correctly now.

I’ve just uploaded 2.6.1 (no overwrite) and it’s still a blank page: Displaying errors gives me:

Fatal error: Constructor Piwik\Factory::factory() cannot be static in /path/to/piwik/core/Factory.php on line 60

It’s an abstract class with a static method of the same name as the class (but lowercase). Is that allowed in PHP 5.3.2? At least making it non-static fixes it.

Maybe 5.3.2 thinks it’s the constructor? Even though it’s an abstract class? It’s not complaining about the other static method in there.

edit: I should read the error message more carefully. That’s exactly what’s happening. Poor choice of method name. Surely that’s not the real solution though.

edit2: Yup, my change breaks the cronjob though unfortunately:

Non-static method Piwik\Factory::factory() cannot be called statically, assuming $this from incompatible context

I think 2.6.1 should be pulled off the download page. It can only get worse.

Does anyone know if I can just place the old files (before upgrade) in the web-directory to make a downgrade?


This should work. you must try.

Can I find the 2.5.0 release anywhere? I don’t want to use the GIT version, as it seems to have other dependencies (composer e.g.).

You can find all builds at http://builds.piwik.org/

Cool, thx!
I replaced the files with version 2.5.0 and it seems to work fine.
Is it safe from a database point of view? Did 2.6.0/1 do any changes that don’t work with 2.5.0?

You might also try version 2.7.0-b1. which solves the PHP 5.3.2 issue.