Nextcloud blank page after php update

Hi,

my nextcloud installation (migrated from owncloud) was working perfectly fine on latest debian linux. Then I apt-get upgraded, and the following packages have been updated:

libapache2-mod-php7.0 php-common php-mcrypt php-readline php7.0 php7.0-cgi
php7.0-cli php7.0-common php7.0-curl php7.0-fpm php7.0-gd php7.0-json
php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-readline

Since then I wasn’t able to reach my instance since it only shows a white page. Restarted apache2 and php7.0-fpm a couple of time, no result. Replaced apache2 by nginx, still white page.
Other hosted php pages (wordpress, eyeos) work fine.

What can I do?

cat config.php

<?php $CONFIG = array ( 'instanceid' => 'notgonnatell', 'passwordsalt' => 'nothingtoseehere', 'trusted_domains' => array ( 0 => 'wmbauer.serveblog.net', 1 => '10.0.0.30', 2 => 'alexia.local', 3 => 'wmbauer.net', 4 => 'cloud.wmbauer.net', ), 'datadirectory' => '/home/ncdata/', 'overwrite.cli.url' => 'https://cloud.wmbauer.net', 'dbtype' => 'mysql', 'version' => '9.0.50.0', 'dbname' => 'nextcloud', 'dbhost' => '127.0.0.1', 'dbtableprefix' => '', 'dbuser' => 'nextcloud', 'dbpassword' => 'sure', 'installed' => true, 'forcessl' => true, 'theme' => '', 'enable_previews' => true, 'maintenance' => false, 'secret' => '98878bc590d1e8898d5cb51945ad4e842bf0465335681f017968c1cc26c70b3aef83d3bec0f87315b9884dd78799bf76', 'loglevel' => 1, 'trashbin_retention_obligation' => 'auto', 'appstore.experimental.enabled' => true, 'mail_smtpmode' => 'smtp', 'mail_smtpsecure' => 'tls', 'mail_from_address' => 'blabla', 'mail_domain' => 'no.at', 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpauth' => 1, 'mail_smtphost' => 'bla.de', 'mail_smtpport' => '25', 'mail_smtpname' => 'no', 'mail_smtppassword' => 'nope', 'filelocking.enabled' => 'true', 'memcache.local' => '\\OC\\Memcache\\APCu', 'memcache.locking' => '\\OC\\Memcache\\APCu', 'updatechecker' => false, );

Somehow my server got rid of a bunch of php libraries… Reinstalled them and now it works again.

Could you tell me which ones and how you reinstalled them? I’ve got the same blank page

Check: https://docs.nextcloud.org/server/9/admin_manual/installation/source_installation.html#prerequisites

If that does not work, please check your servers error log file (e.g. /var/log/apache2/error.log ) for the exact error message, which methods/modules are missing.

1 Like

I also had the same problem after upgrading from php7.0 to php7.1 through and ubuntu upgrade (17.04 to 17.10).
When I tried to reinstall all the php packages I noticed this message (not the exact text here):

libapache2-mod-php7.1, php7.0 enabled, not enabling 7.1

So simply:

a2dismod php7.0
a2enmod php7.1

service apache2 restart

Solved!f Hope it helps.

I have got a similar problem although I did not update anything - I just changed the default PHP upload sizes in th php.ini to 1024M and restarted apache - after that my connection only leads to a blank page and the apache error log gives me a message I unfortunatly can not interprete…

[Sun Jan 28 18:05:39.784770 2018] [:error] [pid 3236] [client 192.168.2.116:51519] PHP Fatal error: Uncaught Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [14] unable to open database file in /var/www/html/nextcloud/lib/private/DB/Connection.php:60\nStack trace:\n#0 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(973): OC\\DB\\Connection->connect()\n#1 /var/www/html/nextcloud/lib/private/DB/Connection.php(215): Doctrine\\DBAL\\Connection->executeUpdate('PRAGMA read_unc...', Array, Array)\n#2 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(621): OC\\DB\\Connection->executeUpdate('PRAGMA read_unc...')\n#3 /var/www/html/nextcloud/lib/private/DB/Connection.php(147): Doctrine\\DBAL\\Connection->setTransactionIsolation(2)\n#4 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\\DB\\Connection->__construct(Array, Object(Doctrine\\DBAL\\Driver\\PDOSqlite\\Driver), Object(Doctrine\\DBAL\\Configuration), Object(Doctrine\\Common\\EventManager))\n#5 /var/www/html/nextcloud/lib in /var/www/html/nextcloud/lib/private/DB/Connection.php on line 60, referer: http://192.168.2.121/nextcloud/

does anyone have an idea what this could mean?

I have the same issue as mhw-hermes before. Since yesterday I see a blank page. In Apache 2.4 error log I found this:

**2019-06-05T21:40:08+02:00 Vela [Wed Jun 05 21:40:08.002749 2019] [proxy_fcgi:error] [pid 21542:tid 140124801079040] [client 87.78.102.191:34272] **
**AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: **
An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory in /volume1/web/engelssofa/lib/private/DB/Connection.php:64\nStack trace:\n
#0 /volume1/web/engelssofa/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()\n
#1 /volume1/web/engelssofa/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()\n
#2 /volume1/web/engelssofa/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()\n
#3 /volume1/web/engelssofa/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()\n
#4 /volume1/web/engelssofa/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)\n
#5 /volume1/web/engelssofa/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172):
OC\DB\Connection…\nPHP message: PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database:
An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory in /volume1/web/engelssofa/lib/private/DB/Connection.php:64\nStack trace:\n
#0 /volume1/web/engelssofa/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()\n
#1 /volume1/web/engelssofa/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()\n
#2 /volume1/web/engelssofa/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()\n
#3 /volume1/web/engelssofa/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()\n
#4 /volume1/web/engelssofa/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)\n
#5 /volume1/web/engelssofa/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection…\n’

What does that mean and how do I fix? Thank you for any answers!
Krikrack

Hello

Did you update your php ?

Thank you for your quick reply. Good question!

My Nextcloud is hosted on Synology DS415+ with DSM 6.2.2-24922.
Packages PHP 5.6, PHP 7.0 and PHP 7.2 are installed, where Synology still needs 5.6 for some Apps where Nextcloud needs 7.x. All configured for automatic update.

After your question I figured out, there was an Update for PHP 5.6 on June-04, 2019.

Crazy, it looks confusing to me, that updating 5.6 could affect Nextcloud working with 7.x.

How could I fix?

well, as i dont have any synology box, it is hard to guess, but, usually there is a pattern to check:

fist is to know witch php is used by your apache server.
usually a, with ssh access php -v give the answer.
usually, a2enmod php.version tells the web server witch php to used.

USUALLY as i said.

Synology may work differently, check the synology forum …