Error "foreach() argument must be of type array|object" in Application.php

Unfortunatly I constantly get the above error every few seconds, since I updated Nextcloud form 28.0.1 to 28.0.2.
My nextcloud is hosted by a web provider.

Nextcloud version (eg, 20.0.5): 28.0.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04.6
Apache or nginx version (eg, Apache 2.4.25): ???
PHP version (eg, 7.4): 8.1.27

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

The output of your Nextcloud log in Admin > Logging:

[PHP] Fehler: foreach() argument must be of type array|object, bool given at /home/webpages/lima-city/blackmail/nextcloud/apps/workflowengine/lib/AppInfo/Application.php#73

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

<?php
$CONFIG = array (
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'xxx',
  ),
  'datadirectory' => 'xxx',
  'dbtype' => 'mysql',
  'version' => '28.0.2.5',
  'overwrite.cli.url' => 'xxx',
  'dbname' => 'xxx',
  'dbhost' => 'xxx',
  'dbport' => 'xxx',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxx',
  'dbpassword' => 'xxx',
  'installed' => true,
  'instanceid' => 'xxx',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'xxx',
  'mail_domain' => 'xxx',
  'mail_smtphost' => 'xxx',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',
  'maintenance' => false,
  'default_phone_region' => 'DE',
  'memcache.local' => '\\OC\\Memcache\\Memcached',
  'memcache.distributed' => '\\OC\\Memcache\\Memcached',
  'memcached_servers' => 
  array (
    0 => 
    array (
      0 => '/usr/share/lima/php-blackmail/memcached.sock',
      1 => 0,
    ),
  ),
  'theme' => '',
  'loglevel' => 0,
  'updater.secret' => 'xxx',
);	

Hello Blacky!
I have the same issue. Did you manage to fix it?

I am getting the same error in Nextcloud 29.0.1 on Ubuntu 22.04LTS with Nginx PHP 8.3, any update on this error?

[PHP] Error: foreach() argument must be of type array|object, false given at /apps/workflowengine/lib/AppInfo/Application.php#73
	GET /apps/logreader/api/log?offset=0&query=
	from 192.168.1.xxx  by  at May 27, 2024, 11:29:07 AM

Are you using the workflowengine?

You mean do we have defined any “Flows”?

Yes. The error is coming from Flows.

Thanks for the response :slight_smile:
I don’t have defined any flows, none of the users either. I have also uninstalled “File access control” app and errors are still appearing. Can I turn off somehow workflowengine?

same issue here. No flows.

I found a theread with solution. It seems to be a problem with memcache. After disabling it, errors stop. I think I gonna change to redis. More info here: "This is the unsupported community build of Nextcloud." message for small install

2 Likes