Log flooded with errors around array_merge and array_unique

Nextcloud version - 11.0.1.2
Operating system and version - CentOS 7
Apache or nginx version - Nginx 1.10.2 (reverse proxy) Apache 2.4.6 (web container)
PHP version - 7.0.15
Is this the first time you’ve seen this error and can you replicate it? No and yes I can

The issue you are facing:

So I was going through the logs just to make sure everything was ok, and saw a boatload of stuff in the error log. I’m contemplating just wiping the database and starting fresh since I haven’t come too far with loading stuff on, but wanting to check to make sure this doesn’t have an easy fix first.

Below are some of the errors I see that repeat with every refresh of the corresponding pages.

The output of your Nextcloud log in Admin > Logging:

I see this around file tagging, I get it when I add or remove a file tag whether it be on the file, or through the workflow section.

{“reqId”:“WJv7ja9LlUjr5qltFO4ZuQAAAAM”,“remoteAddr”:“10.37.20.3”,“app”:“PHP”,“message”:“array_merge() expects at least 1 parameter, 0 given at /var/www/html/nextcloud/apps/workflowengine/lib/Check/FileSystemTags.php#129”,“level”:3,“time”:“2017-02-09T05:18:06+00:00”,“method”:“GET”,“url”:"/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json&path=%2FPlexContent&shared_with_me=true",“user”:“push”,“version”:“11.0.1.2”}
{“reqId”:“WJv7ja9LlUjr5qltFO4ZuQAAAAM”,“remoteAddr”:“10.37.20.3”,“app”:“PHP”,“message”:“array_unique() expects parameter 1 to be array, null given at /var/www/html/nextcloud/apps/workflowengine/lib/Check/FileSystemTags.php#130”,“level”:3,“time”:“2017-02-09T05:18:06+00:00”,“method”:“GET”,“url”:"/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json&path=%2FPlexContent&shared_with_me=true",“user”:“push”,“version”:“11.0.1.2”}

Get this when accessing the main admin page:

{“reqId”:“WJv9odVqJMsNhvSJeILJTwAAAAI”,“remoteAddr”:“10.37.20.3”,“app”:“PHP”,“message”:“array_merge() expects at least 1 parameter, 0 given at /var/www/html/nextcloud/apps/workflowengine/lib/Check/FileSystemTags.php#129”,“level”:3,“time”:“2017-02-09T05:26:57+00:00”,“method”:“PROPFIND”,“url”:"/remote.php/webdav",“user”:“push”,“version”:“11.0.1.2”}
{“reqId”:“WJv9odVqJMsNhvSJeILJTwAAAAI”,“remoteAddr”:“10.37.20.3”,“app”:“PHP”,“message”:“array_unique() expects parameter 1 to be array, null given at /var/www/html/nextcloud/apps/workflowengine/lib/Check/FileSystemTags.php#130”,“level”:3,“time”:“2017-02-09T05:26:57+00:00”,“method”:“PROPFIND”,“url”:"/remote.php/webdav",“user”:“push”,“version”:“11.0.1.2”}
{“reqId”:“WJv9odVqJMsNhvSJeILJTwAAAAI”,“remoteAddr”:“10.37.20.3”,“app”:“PHP”,“message”:“in_array() expects parameter 2 to be array, null given at /var/www/html/nextcloud/apps/workflowengine/lib/Check/FileSystemTags.php#83”,“level”:3,“time”:“2017-02-09T05:26:57+00:00”,“method”:“PROPFIND”,“url”:"/remote.php/webdav",“user”:“push”,“version”:“11.0.1.2”}

And this when I go to the external storage page with a valid (and working) webdav connection over http

{“reqId”:“WJv9zLffLJydReLv7afwtwAAAAk”,“remoteAddr”:“10.37.20.3”,“app”:“PHP”,“message”:“array_merge() expects at least 1 parameter, 0 given at /var/www/html/nextcloud/apps/workflowengine/lib/Check/FileSystemTags.php#129”,“level”:3,“time”:“2017-02-09T05:27:40+00:00”,“method”:“PROPFIND”,“url”:"/remote.php/webdav",“user”:“push”,“version”:“11.0.1.2”}
{“reqId”:“WJv9zLffLJydReLv7afwtwAAAAk”,“remoteAddr”:“10.37.20.3”,“app”:“PHP”,“message”:“array_unique() expects parameter 1 to be array, null given at /var/www/html/nextcloud/apps/workflowengine/lib/Check/FileSystemTags.php#130”,“level”:3,“time”:“2017-02-09T05:27:40+00:00”,“method”:“PROPFIND”,“url”:"/remote.php/webdav",“user”:“push”,“version”:“11.0.1.2”}
{“reqId”:“WJv9zLffLJydReLv7afwtwAAAAk”,“remoteAddr”:“10.37.20.3”,“app”:“PHP”,“message”:“in_array() expects parameter 2 to be array, null given at /var/www/html/nextcloud/apps/workflowengine/lib/Check/FileSystemTags.php#83”,“level”:3,“time”:“2017-02-09T05:27:40+00:00”,“method”:“PROPFIND”,“url”:"/remote.php/webdav",“user”:“push”,“version”:“11.0.1.2”}

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

<?php $CONFIG = array ( 'instanceid' => 'oc9v9sp9drst', 'passwordsalt' => 'salty', 'secret' => 'supersecret', 'trusted_domains' => array ( 0 => '10.37.70.5', 1 => 'my.tlddomain.com', 2 => 'my2.tlddomain.com', ), 'datadirectory' => '/var/nextclouddata', 'overwrite.cli.url' => 'http://10.37.70.6:8080/nextcloud', 'dbtype' => 'mysql', 'version' => '11.0.1.2', 'dbname' => 'nextclouddb', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'nextclouduser', 'dbpassword' => 'password', 'logtimezone' => 'UTC', 'installed' => true, 'trusted_proxies' => array ( 0 => '10.37.70.5', ), 'forwarded_for_headers' => array ( 0 => 'HTTP_X_FORWARDED_FOR', ), 'loglevel' => 3, );

Have the same issue, but with Dropbox:

{"reqId":"MBVoN1PRg3pHwJpaQI5e","remoteAddr":"IPADDR","app":"PHP","message":"in_array() expects parameter 2 to be array, null given at \/var\/www\/nextcloud\/apps\/workflowengine\/lib\/Check\/FileSystemTags.php#83","level":3,"time":"2017-03-23T09:38:54+01:00","method":"PROPFIND","url":"\/nextcloud\/remote.php\/webdav\/Dropbox-USER\/","user":"USER","version":"11.0.2.7"}
{"reqId":"MBVoN1PRg3pHwJpaQI5e","remoteAddr":"IPADDR","app":"PHP","message":"array_merge() expects at least 1 parameter, 0 given at \/var\/www\/nextcloud\/apps\/workflowengine\/lib\/Check\/FileSystemTags.php#129","level":3,"time":"2017-03-23T09:38:55+01:00","method":"PROPFIND","url":"\/nextcloud\/remote.php\/webdav\/Dropbox-USER\/","user":"USER","version":"11.0.2.7"}
{"reqId":"MBVoN1PRg3pHwJpaQI5e","remoteAddr":"IPADDR","app":"PHP","message":"array_unique() expects parameter 1 to be array, null given at \/var\/www\/nextcloud\/apps\/workflowengine\/lib\/Check\/FileSystemTags.php#130","level":3,"time":"2017-03-23T09:38:55+01:00","method":"PROPFIND","url":"\/nextcloud\/remote.php\/webdav\/Dropbox-USER\/","user":"USER","version":"11.0.2.7"}
{"reqId":"MBVoN1PRg3pHwJpaQI5e","remoteAddr":"IPADDR","app":"PHP","message":"in_array() expects parameter 2 to be array, null given at \/var\/www\/nextcloud\/apps\/workflowengine\/lib\/Check\/FileSystemTags.php#83","level":3,"time":"2017-03-23T09:38:55+01:00","method":"PROPFIND","url":"\/nextcloud\/remote.php\/webdav\/Dropbox-USER\/","user":"USER","version":"11.0.2.7"}
{"reqId":"MBVoN1PRg3pHwJpaQI5e","remoteAddr":"IPADDR","app":"PHP","message":"array_merge() expects at least 1 parameter, 0 given at \/var\/www\/nextcloud\/apps\/workflowengine\/lib\/Check\/FileSystemTags.php#129","level":3,"time":"2017-03-23T09:38:58+01:00","method":"PROPFIND","url":"\/nextcloud\/remote.php\/webdav\/Dropbox-USER\/","user":"USER","version":"11.0.2.7"}
{"reqId":"MBVoN1PRg3pHwJpaQI5e","remoteAddr":"IPADDR","app":"PHP","message":"array_unique() expects parameter 1 to be array, null given at \/var\/www\/nextcloud\/apps\/workflowengine\/lib\/Check\/FileSystemTags.php#130","level":3,"time":"2017-03-23T09:38:58+01:00","method":"PROPFIND","url":"\/nextcloud\/remote.php\/webdav\/Dropbox-USER\/","user":"USER","version":"11.0.2.7"}
{"reqId":"MBVoN1PRg3pHwJpaQI5e","remoteAddr":"IPADDR","app":"PHP","message":"in_array() expects parameter 2 to be array, null given at \/var\/www\/nextcloud\/apps\/workflowengine\/lib\/Check\/FileSystemTags.php#83","level":3,"time":"2017-03-23T09:38:58+01:00","method":"PROPFIND","url":"\/nextcloud\/remote.php\/webdav\/Dropbox-USER\/","user":"USER","version":"11.0.2.7"}
{"reqId":"MBVoN1PRg3pHwJpaQI5e","remoteAddr":"IPADDR","app":"PHP","message":"array_merge() expects at least 1 parameter, 0 given at \/var\/www\/nextcloud\/apps\/workflowengine\/lib\/Check\/FileSystemTags.php#129","level":3,"time":"2017-03-23T09:38:58+01:00","method":"PROPFIND","url":"\/nextcloud\/remote.php\/webdav\/Dropbox-USER\/","user":"USER","version":"11.0.2.7"}
{"reqId":"MBVoN1PRg3pHwJpaQI5e","remoteAddr":"IPADDR","app":"PHP","message":"array_unique() expects parameter 1 to be array, null given at \/var\/www\/nextcloud\/apps\/workflowengine\/lib\/Check\/FileSystemTags.php#130","level":3,"time":"2017-03-23T09:38:58+01:00","method":"PROPFIND","url":"\/nextcloud\/remote.php\/webdav\/Dropbox-USER\/","user":"USER","version":"11.0.2.7"}
{"reqId":"MBVoN1PRg3pHwJpaQI5e","remoteAddr":"IPADDR","app":"PHP","message":"in_array() expects parameter 2 to be array, null given at \/var\/www\/nextcloud\/apps\/workflowengine\/lib\/Check\/FileSystemTags.php#83","level":3,"time":"2017-03-23T09:38:58+01:00","method":"PROPFIND","url":"\/nextcloud\/remote.php\/webdav\/Dropbox-USER\/","user":"USER","version":"11.0.2.7"}

Hello,

do you have any info regarding this issue?
I have the same outputs in my logfile regarding apps/workflowengine/lib/Check/FileSystemTags.php
#83 #129 #130
The error appears every second.

I have FileAccessControl enabled. I think these appeared after enabling it, but not sure.
Best regards.

Anyone have any information on how to solve this?

I believe you need to open a new topic with more information about you installation and issue with logs, because listed here issues were already gone with e.g. old Dropbox Application that was mentioned here long time ago retired and we have few newer NC Versions.