I've run into this problem several times over the last few months whenever an apt-get dist-upgrade grabs a new Owncloud package:

Setting up owncloud (7.0.10~dfsg-2) ...
Turned on maintenance mode
Checked database schema update
Updated database
PHP Fatal error:  Call to undefined method OC\Route\Route::getMethods() in /usr/share/owncloud/lib/private/route/route.php on line 94

This page shows the problem commit: https://github.com/owncloud/core/commit/7f2f92847be98bbf3a0a5ca8567fab001bb131c1

Just revert both changes that are now on lines 22 and 94. Then run sudo -u www-data php /usr/share/owncloud/occ upgrade and all should be good:

# sudo -u www-data php /usr/share/owncloud/occ upgrade
Turned on maintenance mode
Checked database schema update
Updated database
Turned off maintenance mode
Update successful

Next Post Previous Post