Filesharing not possible


from one moment to another I cant create a sharing link. please see the log.
can someone help me? Version 20.01

[PHP] Error: Error: Invalid argument supplied for foreach() at /var/www/vhosts/ at <>

  1. /var/www/vhosts/ line 158
    OC\Log\ErrorHandler::onError(2, “Invalid argument supplied for foreach()”, “/var/www/vhosts … p”, 158, {interfaces: false,result: []})
  2. /var/www/vhosts/ line 132
  3. /var/www/vhosts/ line 111
  4. /var/www/vhosts/ line 141
  5. /var/www/vhosts/ line 83
    OCA\Settings\Controller\AdminSettingsController->formatSettings([[OCA\ServerInfo … ]])
  6. /var/www/vhosts/ line 152
  7. /var/www/vhosts/ line 68
    OCA\Settings\Controller\AdminSettingsController->getIndexResponse(“admin”, “serverinfo”)
  8. /var/www/vhosts/ line 169
  9. /var/www/vhosts/ line 100
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Settings\Con … {}, “index”)
  10. /var/www/vhosts/ line 152
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings\Con … {}, “index”)
  11. /var/www/vhosts/ line 308
    OC\AppFramework\App::main(“OCA\Settings\ … r”, “index”, OC\AppFramework\ … {}, {section: "serve … "})
  12. /var/www/vhosts/ line 1009
  13. /var/www/vhosts/ line 37

GET /index.php/settings/admin/serverinfo from by admin at 2020-10-28T06:59:06+00:00

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via 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:


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


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):
Operating system and version (eg, Ubuntu 20.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):

The issue you are facing:

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

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:


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


The output of your Apache/nginx/system log in /var/log/____:


@Kulta welcome to the forums of nextcloud. Nice that you found your way here.

it’s also nice that you posted parts of your errorlog here but I’m afraid it’s not enough. Why did you simply ignore the template asking you for more informations? It might be a bit of more work for you but most of the time it would save everyone else here on the forum some time. so please be so nice and add some more information iof your config, your serverenvironment, your setup.

awww and don’t forgt to search the forum for already existing, similar problems. and if you found a solution in the meanwhile don’t hesitate to post it here as an answer.