Nextcloud offline after upgrade to PHP7 (jessie)

Hey there,
I wanted to test my nextcloud install with php7 on Debian Jessie before moving to a full upgrade to stretch. I used current dotdeb packages of 7.0 and a2dismod php5 and activated php7 as suggested in an older thread in this forum.
after Apache2 restart nothing works, neither webinterface nor client connect. When moving back to php5 it works again.
I provide my apache2 error logs below, anymore info needed?

Nextcloud version: 12
Operating system and version: Debian jessie 8.8
Apache 2.4,8
PHP 7.0.20

apache2 error log:

Hi Snapper87,
I’m not a programmer but shouldn’t it be “nextcloud” instead of “owncloud”?

[Sun Jun 18 23:35:49.370344 2017] [:error] [pid 18212] [client] PHP Fatal error: Uncaught Error: Call to undefined function OC\Log\json_encode() in /var/www/owncloud/lib/private/Log/File.php:120\nStack trace:\n#0$

Looks like you didn’t install all required php-packages (here JSON):


I migrated from owncloud one year ago. I haven’t changed the folder’s name since.

thanks @tflidd for that remark. I fixed it by doing apt-get install php7.0-json --reinstall (since it was already installed before)

I also needed to install php7.0-fpm and run the command a2enconf php7.0-fpm

after that, it works like a charm