Fatal error: Interface 'Piwik\View\ViewInterface' not found in /var/www/tilastot.verkkonummi.fi/core/View.php on line 107

While trying to upgrade from 1.12 to 2.1.0 I got the following error message

Fatal error: Interface ‘Piwik\View\ViewInterface’ not found in /var/www/tilastot.verkkonummi.fi/core/View.php on line 107

It looke like the upgrade was interrupted, reloading the page did not help. As far as I know, the file privileges were correct (same user as apache2 user, ie www-data, temporiraly. I do harden the permissions in production use.)

Piwik did not let me sign in after this . I was forced to revert to backup of 1.12.

Anything I can do?

If this is connected to xcache, please note that the server needs opcode caching.

Here you have the server info:

apache2 -v

Server version: Apache/2.2.14 (Ubuntu)
Server built: Jul 12 2013 13:39:39

php -v

PHP 5.3.2-1ubuntu4.23 with Suhosin-Patch (cli) (built: Mar 1 2014 00:32:45)
Copyright © 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright © 1998-2010 Zend Technologies
with XCache v1.3.0, Copyright © 2005-2009, by mOo

apache2ctl -M

Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cache_module (shared)
cgi_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
expires_module (shared)
headers_module (shared)
mem_cache_module (shared)
mime_module (shared)
security2_module (shared)
negotiation_module (shared)
php5_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
rpaf_module (shared)
setenvif_module (shared)
status_module (shared)
unique_id_module (shared)
Syntax OK

php -m

[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
geoip
gettext
hash
iconv
imagick
imap
json
libxml
mbstring
mcrypt
memcache
memcached
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
XCache
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]
XCache

python -V

Python 2.6.5

I would like to upgrade, but currently it looks difficult.

Yours,
Olli

Try re-upload all files from 2.1.0

If it still does not work, try upgrade to more recent PHP as yours is 5 year old and maybe has some bugs