Blank page after deactivating apps

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 18.0.2): docker nextcloud 18-APACHE:latest container
Operating system and version (eg, Ubuntu 20.04): Windows Server 2019
Apache or nginx version (eg, Apache 2.4.25): ???
PHP version (eg, 7.1): ???

The issue you are facing:
After deactivating some apps (not sure which ones anymore unfortunately) hoping to speed up my nextcloud instance, NC only shows a blank page. The logs show the following entries:

{"reqId":"ugTQSI6wl5y5kH18dI2m","level":3,"time":"2020-06-22T08:01:43+00:00","remoteAddr":"100.20.102.10","user":"XXXXXXXXXXXXXX","app":"PHP","method":"PUT","url":"/remote.php/webdav/SofortUpload/XXXXXXXXXXXXXXX.jpg","message":"array_merge(): Expected parameter 2 to be an array, null given at /var/www/html/lib/private/Files/Type/Detection.php#132","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.12.0","version":"18.0.6.0"}

{"reqId":"wp6eKTlIKubbzIos3G2f","level":3,"time":"2020-06-22T08:02:23+00:00","remoteAddr":"100.20.102.10","user":"XXXXXXXXXXXXX","app":"PHP","method":"PUT","url":"/remote.php/dav/uploads/XXXXXXXXXXXXX/33d2ef5f09c30aXXXXXXX859ed12b17/0000000000000000-0000000002XXXX16","message":"TypeError: Return value of OC\\Files\\Type\\Detection::loadCustomDefinitions() must be of the type array, null returned at /var/www/html/lib/private/Files/Type/Detection.php#137","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.12.0","version":"18.0.6.0"}

when trying to update the installed apps with occ app::update --all, the following error appears:

An unhandled exception has been thrown:
TypeError: Return value of OC\Files\Type\Detection::loadCustomDefinitions() must be of the type array, null returned in /var/www/html/lib/private/Files/Type/Detection.php:137
Stack trace:
#0 /var/www/html/lib/private/Files/Type/Detection.php(175): OC\Files\Type\Detection->loadCustomDefinitions('mimetypemapping...', NULL)
#1 /var/www/html/lib/private/Files/Type/Detection.php(195): OC\Files\Type\Detection->loadMappings()
#2 /var/www/html/lib/private/Files/Storage/Common.php(250): OC\Files\Type\Detection->detectPath('appdata_oc5889o...')
#3 /var/www/html/lib/private/Files/Storage/Common.php(707): OC\Files\Storage\Common->getMimeType('appdata_oc5889o...')
#4 /var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php(582): OC\Files\Storage\Common->getMetaData('appdata_oc5889o...')
#5 /var/www/html/lib/private/Files/Cache/Scanner.php(113): OC\Files\Storage\Wrapper\Wrapper->getMetaData('appdata_oc5889o...')
#6 /var/www/html/lib/private/Files/Cache/Scanner.php(151): OC\Files\Cache\Scanner->getData('appdata_oc5889o...')
#7 /var/www/html/lib/private/Files/Cache/Scanner.php(337): OC\Files\Cache\Scanner->scanFile('appdata_oc5889o...', 3, -1, NULL, false)
#8 /var/www/html/lib/private/Files/Cache/Updater.php(124): OC\Files\Cache\Scanner->scan('appdata_oc5889o...', false, 3, false)
#9 /var/www/html/lib/private/Files/View.php(321): OC\Files\Cache\Updater->update('appdata_oc5889o...', 1592945462)
#10 /var/www/html/lib/private/Files/View.php(1177): OC\Files\View->writeUpdate(Object(OCA\Files_Trashbin\Storage), 'appdata_oc5889o...')
#11 /var/www/html/lib/private/Files/View.php(694): OC\Files\View->basicOperation('file_put_conten...', '/appdata_oc5889...', Array, '{"data":[{"id":...')
#12 /var/www/html/lib/private/Files/Node/File.php(71): OC\Files\View->file_put_contents('/appdata_oc5889...', '{"data":[{"id":...')
#13 /var/www/html/lib/private/Files/SimpleFS/SimpleFile.php(108): OC\Files\Node\File->putContent('{"data":[{"id":...')
#14 /var/www/html/lib/private/App/AppStore/Fetcher/Fetcher.php(173): OC\Files\SimpleFS\SimpleFile->putContent('{"data":[{"id":...')
#15 /var/www/html/lib/private/Installer.php(408): OC\App\AppStore\Fetcher\Fetcher->get()
#16 /var/www/html/core/Command/App/Update.php(103): OC\Installer->isUpdateAvailable('provisioning_ap...')
#17 /var/www/html/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\App\Update->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/html/3rdparty/symfony/console/Application.php(915): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/html/3rdparty/symfony/console/Application.php(272): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\App\Update), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /var/www/html/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /var/www/html/lib/private/Console/Application.php(214): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 /var/www/html/console.php(99): OC\Console\Application->run()
#23 /var/www/html/occ(11): require_once('/var/www/html/c...')

trying to reactivate the apps does not seem to help unfortunately…

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

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

not accessible