Nextcloud Immediate White Screen (Empty response)

Nextcloud version (eg, 18.0.2): 13.0.8.2
Operating system and version (eg, Ubuntu 20.04): Centos7.0
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.6 (CentOS)
PHP version (eg, 7.1): 7.0.33

The issue you are facing: After going to my nextcloud directory, I get a blank screen.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Open nextcloud from a web browser

The output of your Nextcloud log in Admin > Logging:

Can't get that far :(

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'ocx1ez5n8eq3',
  'passwordsalt' => '+vLHZDqOI+4Ypuzzc4wxJMlo+80Mko',
  'secret' => '0if2Tgc2sCqH9V56TYtI/yvRMQitR9V87OvtFKeAzjaabVKy',
  'trusted_domains' =>
  array (
    0 => 'IP',
    1 => 'IP',
    2 => 'DOMAIN',
  ),
  'datadirectory' => '/media/nextcloud/data',
  'overwrite.cli.url' => 'http://IP/nextcloud',
  'dbtype' => 'mysql',
  'version' => '13.0.8.2',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nc_user',
  'dbpassword' => 'XXX',
  'installed' => true,
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
);```

The output of your Apache/nginx/system log in `/var/log/____`:
{"reqId":"X3YZfb8Ux0gEw-xnlQULxgAAAAA","level":3,"time":"2020-10-01T18:01:33+00:00","remoteAddr":"172.31.0.43","user":"acrylic","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/webdav\/","message":"Namespace declaration statement has to be the very first statement or after any declare call in the script at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Config\/LazyStorageMountInfo.php#23","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.6.2stable-Win64 (build 20191224) (Nextcloud)","version":"13.0.8.2"}
{"reqId":"X3YZgdKcPha76D7OOP8KdAAAAAQ","level":3,"time":"2020-10-01T18:01:37+00:00","remoteAddr":"172.31.0.42","user":"manganet","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/manganet\/","message":"Namespace declaration statement has to be the very first statement or after any declare call in the script at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Config\/LazyStorageMountInfo.php#23","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.3daily-Win64 (build 20190725) (Nextcloud)","version":"13.0.8.2"}
{"reqId":"X3YZhpH8xXyr8XkjsXfKAQAAAAM","level":3,"time":"2020-10-01T18:01:42+00:00","remoteAddr":"172.31.0.42","user":"manganet","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/manganet\/","message":"Namespace declaration statement has to be the very first statement or after any declare call in the script at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Config\/LazyStorageMountInfo.php#23","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.3daily-Win64 (build 20190725) (Nextcloud)","version":"13.0.8.2"}
{"reqId":"X3YZi1qOfHv21hud4CTYbQAAAAU","level":3,"time":"2020-10-01T18:01:47+00:00","remoteAddr":"172.31.0.42","user":"manganet","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/manganet\/","message":"Namespace declaration statement has to be the very first statement or after any declare call in the script at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Config\/LazyStorageMountInfo.php#23","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.3daily-Win64 (build 20190725) (Nextcloud)","version":"13.0.8.2"}
{"reqId":"X3YZkM6QmoCgpgBbXSl2fAAAAAY","level":3,"time":"2020-10-01T18:01:52+00:00","remoteAddr":"172.31.0.42","user":"manganet","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/manganet\/","message":"Namespace declaration statement has to be the very first statement or after any declare call in the script at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Config\/LazyStorageMountInfo.php#23","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.3daily-Win64 (build 20190725) (Nextcloud)","version":"13.0.8.2"}
{"reqId":"X3YZlULXL3gYiPIS91hYlwAAAAE","level":3,"time":"2020-10-01T18:01:57+00:00","remoteAddr":"172.31.0.42","user":"manganet","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/manganet\/","message":"Namespace declaration statement has to be the very first statement or after any declare call in the script at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Config\/LazyStorageMountInfo.php#23","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.3daily-Win64 (build 20190725) (Nextcloud)","version":"13.0.8.2"}
{"reqId":"X3YZmr8Ux0gEw-xnlQULxwAAAAA","level":3,"time":"2020-10-01T18:02:02+00:00","remoteAddr":"172.31.0.42","user":"manganet","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/manganet\/","message":"Namespace declaration statement has to be the very first statement or after any declare call in the script at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Config\/LazyStorageMountInfo.php#23","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.3daily-Win64 (build 20190725) (Nextcloud)","version":"13.0.8.2"}
{"reqId":"X3YZndKcPha76D7OOP8KdgAAAAQ","level":3,"time":"2020-10-01T18:02:05+00:00","remoteAddr":"172.31.0.43","user":"acrylic","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/webdav\/","message":"Namespace declaration statement has to be the very first statement or after any declare call in the script at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Config\/LazyStorageMountInfo.php#23","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.6.2stable-Win64 (build 20191224) (Nextcloud)","version":"13.0.8.2"}
{"reqId":"X3YZn5H8xXyr8XkjsXfKAgAAAAM","level":3,"time":"2020-10-01T18:02:07+00:00","remoteAddr":"172.31.0.42","user":"manganet","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/manganet\/","message":"Namespace declaration statement has to be the very first statement or after any declare call in the script at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Config\/LazyStorageMountInfo.php#23","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.3daily-Win64 (build 20190725) (Nextcloud)","version":"13.0.8.2"}
{"reqId":"X3YZpELXL3gYiPIS91hYmAAAAAE","level":3,"time":"2020-10-01T18:02:12+00:00","remoteAddr":"172.31.0.42","user":"manganet","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/manganet\/","message":"Namespace declaration statement has to be the very first statement or after any declare call in the script at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Config\/LazyStorageMountInfo.php#23","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.3daily-Win64 (build 20190725) (Nextcloud)","version":"13.0.8.2"}

Nextcloud 13 has been declared end-of-Live in February 2019. Therefore you won’t get any support on this version. Please update your installation asap.

Hey - OK I am more than happy to update it, but how? :smiley:

OCC reports I am on the latest version, and I can’t use the web-based updater as my install is broken.