Skip to content

[Bug]: in_array(): Argument #2 ($haystack) must be of type array, string given #32399

Description

@francoisPE

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

I upgrade from 21 to 22.2.7 and now 23.0.4
Bug appears at first upgrade 21 to 22
When trying to see my files in browser, it is impossible : "Directory not available"
In log, I found :

{"reqId":"oEJrU0gwMVjEUAcymgB0","level":4,"time":"2022-05-15T08:42:02+02:00","remoteAddr":"2a01:hidden:f3:27da:de3a:46df","user":"admin","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/admin/","message":"in_array(): Argument #2 ($haystack) must be of type array, string given","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0","version":"23.0.4.1","exception":{"Exception":"TypeError","Message":"in_array(): Argument #2 ($haystack) must be of type array, string given","Code":0,"Trace":[{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":349,"function":"in_array"},{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":363,"function":"getEnabledDefaultProvider","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":379,"function":"registerCoreProvider","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":269,"function":"registerCoreProviders","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/apps/dav/lib/Connector/Sabre/FilesPlugin.php","line":378,"function":"isAvailable","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/PropFind.php","line":95,"function":"OCA\\DAV\\Connector\\Sabre\\{closure}","class":"OCA\\DAV\\Connector\\Sabre\\FilesPlugin","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/mypathtoweb/apps/dav/lib/Connector/Sabre/FilesPlugin.php","line":379,"function":"handle","class":"Sabre\\DAV\\PropFind","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"handleGetProperties","class":"OCA\\DAV\\Connector\\Sabre\\FilesPlugin","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/Server.php","line":1052,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/Server.php","line":984,"function":"getPropertiesByNode","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/Server.php","line":1661,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/Server.php","line":1646,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/apps/dav/lib/Server.php","line":339,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/remote.php","line":166,"args":["/mypathtoweb/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/mypathtoweb/lib/private/PreviewManager.php","Line":349,"CustomMessage":"--"}}
{"reqId":"FW6mSMwDZyy1CG1vXEHx","level":3,"time":"2022-05-15T08:42:03+02:00","remoteAddr":"2a01:hidden:27da:de3a:46df","user":"admin","app":"index","method":"GET","url":"/apps/recommendations/api/recommendations","message":"in_array(): Argument #2 ($haystack) must be of type array, string given in file '/mypathtoweb/lib/private/PreviewManager.php' line 349","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0","version":"23.0.4.1","exception":{"Exception":"Exception","Message":"in_array(): Argument #2 ($haystack) must be of type array, string given in file '/mypathtoweb/lib/private/PreviewManager.php' line 349","Code":0,"Trace":[{"file":"/mypathtoweb/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/mypathtoweb/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/mypathtoweb/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/mypathtoweb/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/mypathtoweb/lib/private/AppFramework/Http/Dispatcher.php","Line":158,"Previous":{"Exception":"TypeError","Message":"in_array(): Argument #2 ($haystack) must be of type array, string given","Code":0,"Trace":[{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":349,"function":"in_array"},{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":363,"function":"getEnabledDefaultProvider","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":379,"function":"registerCoreProvider","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":269,"function":"registerCoreProviders","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/apps/recommendations/lib/Service/RecommendationService.php","line":76,"function":"isAvailable","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/apps/recommendations/lib/Service/RecommendationService.php","line":96,"function":"addPreviews","class":"OCA\\Recommendations\\Service\\RecommendationService","type":"->"},{"file":"/mypathtoweb/apps/recommendations/lib/Controller/RecommendationController.php","line":70,"function":"getRecommendations","class":"OCA\\Recommendations\\Service\\RecommendationService","type":"->"},{"file":"/mypathtoweb/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"index","class":"OCA\\Recommendations\\Controller\\RecommendationController","type":"->"},{"file":"/mypathtoweb/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/mypathtoweb/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/mypathtoweb/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/mypathtoweb/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/mypathtoweb/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/mypathtoweb/lib/private/PreviewManager.php","Line":349},"CustomMessage":"--"}}

Steps to reproduce

  1. upgrade from 21 to 22.2.7
  2. upgrade from 22.2.7 to 23.0.4 changed nothing

Expected behavior

I would like to be able to see my files in browser !

Installation method

Manual by script php occ

Operating system

Ubuntu 20.04

PHP engine version

php8.0

Web server

apache2

Database engine version

Mariadb

Is this bug present after an update or on a fresh install?

update 21 to 22

Are you using the Nextcloud Server Encryption module?

No

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "mydom.fr"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "23.0.4.1",
        "overwrite.cli.url": "https:\/\/mydom.fr\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "default_language": "fr",
        "default_locale": "fr",
        "default_phone_region": "fr",
        "defaultapp": "dashboard,files,mail,contacts,calendar,notes,deck,tasks,spreed,passwords,photos,fulltextsearch,duplicatefinder,activity",
        "knowledgebaseenabled": true,
        "remember_login_cookie_lifetime": 1296000,
        "session_lifetime": 86400,
        "session_keepalive": true,
        "filesystem_check_changes": 0,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "tls",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": 587,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "htaccess.RewriteBase": "\/",
        "trashbin_retention_obligation": "auto, 7",
        "versions_retention_obligation": "auto, 7",
        "log_type": "file",
        "logfile": "\/mypathtolog\/file.log",
        "log_rotate_size": 20971520,
        "logfilemode": 640,
        "loglevel": 0,
        "syslog_tag": "mytag",
        "logtimezone": "Europe\/Paris",
        "enable_previews": true,
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "preview_max_filesize_image": "10",
        "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
        "enabledPreviewProviders": "[\n        'OC\\Preview\\PNG',\n        'OC\\Preview\\HEIC',\n        'OC\\Preview\\JPEG',\n        'OC\\Preview\\GIF',\n        'OC\\Preview\\TIFF',\n        'OC\\Preview\\BMP',\n        'OC\\Preview\\XBitmap',\n        'OC\\Preview\\MP3',\n        'OC\\Preview\\TXT',\n        'OC\\Preview\\MarkDown',\n        'OC\\Preview\\OpenDocument',\n        'OC\\Preview\\Krita',\n        'OC\\Preview\\MSOffice2003',\n        'OC\\Preview\\MSOffice2007',\n        'OC\\Preview\\MSOfficeDoc',\n        'OC\\Preview\\PDF',\n        'OC\\Preview\\SVG',\n         ]",
        "log.condition": "['apps' => ['admin_audit'],]",
        "activity_expire_days": 15,
        "skeletondirectory": "\/mypathto\/skeletonNC",
        "templatedirectory": "\/mypathto\/skeletonNC\/Mod\u00e8les",
        "maintenance": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "data-fingerprint": "c41a27cb7d466c423584bf5a7a3f1644",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "password": "***REMOVED SENSITIVE VALUE***",
            "dbindex": "3"
        },
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis"
    }
}

List of activated Apps

Enabled:
  - accessibility: 1.9.0
  - activity: 2.15.0
  - admin_audit: 1.13.0
  - apporder: 0.15.0
  - auto_groups: 1.4.0
  - bruteforcesettings: 2.4.0
  - calendar: 3.3.0
  - circles: 23.1.1
  - cloud_federation_api: 1.6.0
  - comments: 1.13.0
  - contacts: 4.1.0
  - dashboard: 7.3.0
  - data_request: 1.10.0
  - dav: 1.21.0
  - epubreader: 1.4.7
  - event_update_notification: 1.5.0
  - extract: 1.3.5
  - federatedfilesharing: 1.13.0
  - federation: 1.13.0
  - files: 1.18.0
  - files_accesscontrol: 1.13.0
  - files_automatedtagging: 1.13.0
  - files_downloadactivity: 1.13.0
  - files_linkeditor: 1.1.10
  - files_pdfviewer: 2.4.0
  - files_retention: 1.12.0
  - files_rightclick: 1.2.0
  - files_sharing: 1.15.0
  - files_texteditor: 2.14.0
  - files_trashbin: 1.13.0
  - files_versions: 1.16.0
  - files_videoplayer: 1.12.0
  - groupfolders: 11.1.2
  - groupquota: 0.1.8
  - logreader: 2.8.0
  - lookup_server_connector: 1.11.0
  - mail: 1.12.0
  - metadata: 0.16.0
  - nextcloud_announcements: 1.12.0
  - notes: 4.3.1
  - notifications: 2.11.1
  - oauth2: 1.11.0
  - password_policy: 1.13.0
  - passwords: 2022.5.20
  - photos: 1.5.0
  - privacy: 1.7.0
  - provisioning_api: 1.13.0
  - quickaccesssorting: 1.1.3
  - quota_warning: 1.14.0
  - recommendations: 1.2.0
  - richdocuments: 5.0.4
  - richdocumentscode: 21.11.402
  - serverinfo: 1.13.0
  - settings: 1.5.0
  - sharebymail: 1.13.0
  - side_menu: 2.3.5
  - survey_client: 1.11.0
  - suspicious_login: 4.1.0
  - systemtags: 1.13.0
  - terms_of_service: 1.9.3
  - text: 3.4.1
  - theming: 1.14.0
  - theming_customcss: 1.11.0
  - twofactor_admin: 3.2.0
  - twofactor_backupcodes: 1.12.0
  - twofactor_email: 2.4.0
  - twofactor_nextcloud_notification: 3.4.0
  - updatenotification: 1.13.0
  - user_ldap: 1.13.1
  - user_status: 1.3.1
  - user_usage_report: 1.7.0
  - viewer: 1.7.0
  - w2g2: 3.3.8
  - weather_status: 1.3.0
  - workflow_pdf_converter: 1.8.0
  - workflowengine: 2.5.0
Disabled:
  - contactsinteraction: 1.2.0
  - deck: 1.6.1
  - duplicatefinder: 0.0.14
  - encryption
  - files_external
  - files_trackdownloads: 1.11.0
  - firstrunwizard: 2.10.0
  - flow_notifications: 1.2.0
  - integration_whiteboard: 0.0.14
  - nextbackup
  - polls: 3.6.1
  - previewgenerator: 4.0.0
  - ransomware_protection: 1.13.0
  - registration: 1.5.0
  - sharepermissions: 1.0.1
  - socialsharing_email: 2.5.0
  - socialsharing_facebook: 2.5.0
  - socialsharing_twitter: 2.5.0
  - support: 1.4.0
  - tasks: 0.14.4
  - user_retention: 1.6.0
  - workflow_ocr: 1.23.2

Nextcloud Signing status

I modify "skeleton" folder before knowing I can point to somewhere else

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- core
	- FILE_MISSING
		- core/skeleton/Documents/Example.md
		- core/skeleton/Documents/Nextcloud flyer.pdf
		- core/skeleton/Documents/Welcome to Nextcloud Hub.docx
		- core/skeleton/Nextcloud Manual.pdf
		- core/skeleton/Nextcloud intro.mp4
		- core/skeleton/Nextcloud.png
		- core/skeleton/Photos/Frog.jpg
		- core/skeleton/Photos/Gorilla.jpg
		- core/skeleton/Photos/Nextcloud community.jpg
		- core/skeleton/Photos/Toucan.jpg
		- core/skeleton/Photos/Vineyard.jpg
		- core/skeleton/Reasons to use Nextcloud.pdf
		- core/skeleton/Templates/Diagram & table.ods
		- core/skeleton/Templates/Elegant.odp
		- core/skeleton/Templates/Expense report.ods
		- core/skeleton/Templates/Impact effort matrix.whiteboard
		- core/skeleton/Templates/Invoice.odt
		- core/skeleton/Templates/Letter.odt
		- core/skeleton/Templates/Meeting notes.md
		- core/skeleton/Templates/Product plan.md
		- core/skeleton/Templates/Readme.md
		- core/skeleton/Templates/SWOT analysis.whiteboard
		- core/skeleton/Templates/Simple.odp
	- INVALID_HASH
		- core/skeleton/Documents/Readme.md
		- core/skeleton/Photos/Readme.md
	- EXTRA_FILE
		- core/skeleton/Modèles/Notedefrais.ods
		- core/skeleton/Modèles/PresentationSimple.odp
		- core/skeleton/Modèles/Facture.odt
		- core/skeleton/Modèles/Lettre.odt
		- core/skeleton/Modèles/Readme.md
		- core/skeleton/Modèles/PresentationRecherchee.odp

Raw output
==========
Array
(
    [core] => Array
        (
            [FILE_MISSING] => Array
                (
                    [core/skeleton/Documents/Example.md] => Array
                        (
                            [expected] => 2926fb057563b3a001f0098f6b1e344cda00a53fd9b31313d3efb31d89214e5bfe29db45eac5d795afee02688d8ee7077a4db416dfcb43a0da2af61aec3dcdd9
                            [current] => 
                        )

                    [core/skeleton/Documents/Nextcloud flyer.pdf] => Array
                        (
                            [expected] => 61cd69affe00f5b378777c6b7de2e5497dd35093c858886e9d8b058f95a1f21937d9768e6ba19da20e44f5bce937c61b96a0e099d73a2458c592eb2b06ac229e
                            [current] => 
                        )

                    [core/skeleton/Documents/Welcome to Nextcloud Hub.docx] => Array
                        (
                            [expected] => 3ff1076f1f12ae96ab7465a95ed4381ff10cb81fa1a4364c719ebd722e44ef6ed675362ecd7f17984d4546f47f5aabb11b93a998d40c4788ba0907b7d330cf91
                            [current] => 
                        )

                    [core/skeleton/Nextcloud Manual.pdf] => Array
                        (
                            [expected] => 67284072d5b190b889c92da28065df7d832ab41d5251594a47ad0aeeafc020f156d6c90b3ec4c4da2f6ef1386e9e09c258792066a3439824c476711a513ea162
                            [current] => 
                        )

                    [core/skeleton/Nextcloud intro.mp4] => Array
                        (
                            [expected] => 60c43bedd8fbe2a42be4ecd8ea045409c243cf58b31458cd8bc964a81c27a4b19868b6e6e3e6910447243fbb0adef564e3784a3fc03c6e2bc7fed0df8e5035e0
                            [current] => 
                        )

                    [core/skeleton/Nextcloud.png] => Array
                        (
                            [expected] => ca7ac2ee87d0863132ad50c5a9cb406e0e440322adc25fdcb2d97054785da1ff6711e1a878a83cd8eb0f409c9f5b17f460dab4260771419bae47d4caa9c953f7
                            [current] => 
                        )

                    [core/skeleton/Photos/Frog.jpg] => Array
                        (
                            [expected] => 31d78ba24166b31e441546188cf3aa0f73a2e993d13870cc7adb0b47aface753c05866c981512a5ca7e95fb1191e5b1b8cd1e71bed2c777f4d8230e358522243
                            [current] => 
                        )

                    [core/skeleton/Photos/Gorilla.jpg] => Array
                        (
                            [expected] => 6b18ba8a5eeaff2d52f6e7a2ff3376f6e7797165fa3b9dc7a62bdb291f8984f5782697df44653699e6bc5a4ae4a27db262fad297f0330b8336762bcd6c4a9b7a
                            [current] => 
                        )

                    [core/skeleton/Photos/Nextcloud community.jpg] => Array
                        (
                            [expected] => 6ce4c89f1798c4c0233aa0701e7fbbaea5606c81e6060076dca3987c025552102a2381802e66a572ab98874dd876ee67758d8c7d5d53c496948ccaec9811031d
                            [current] => 
                        )

                    [core/skeleton/Photos/Toucan.jpg] => Array
                        (
                            [expected] => d40d9c5c11839296697ddf61b921d7cd13c135675c47e722bb811016af97ff9d9371cec0f3fc0903d88cd3299827ecb520b77e94a6203e831bf33a18c88cef81
                            [current] => 
                        )

                    [core/skeleton/Photos/Vineyard.jpg] => Array
                        (
                            [expected] => 689e351a2740e503bfbb0d91e2859951b9d79c2ec21d59f6a70dbf41c16a9cebb7de38b9ce24eb7f1141857e5e4718572d7c5748171b4517419131e2cc94b2b3
                            [current] => 
                        )

                    [core/skeleton/Reasons to use Nextcloud.pdf] => Array
                        (
                            [expected] => 2aa0772faef9410115a30de793972dc2cccfe188f19149e29c47871aae6c07c9616f8aa8dd6472362463ca647c7d5b4171d18a09645a99e4feb556c90807ded4
                            [current] => 
                        )

                    [core/skeleton/Templates/Diagram & table.ods] => Array
                        (
                            [expected] => 16ecc6b7088236e12b800b01bc7fdc985e74ca4f411e4620f23a06e639ee5dd0710fdaefff308e2cfe43aa00efd443152429efd0a880cbcd92d3dfcc3a9cf27a
                            [current] => 
                        )

                    [core/skeleton/Templates/Elegant.odp] => Array
                        (
                            [expected] => 7f2799e339e609631704a1eed5f18fee5924cecddc16bc56ebc37cc54686044b805a68df7b5bef3ee19097b28099aa33243ff75d3411ce08ede078c9a03ed585
                            [current] => 
                        )

                    [core/skeleton/Templates/Expense report.ods] => Array
                        (
                            [expected] => a71df1eb87af2e8415c7ec0c8bf532ea0744a23e73891d513e152e8b42cf13c70a1cb83022c85f324535bfd4c2ebef4634365ae9b432e54e9a4cc9cd60e7a96f
                            [current] => 
                        )

                    [core/skeleton/Templates/Impact effort matrix.whiteboard] => Array
                        (
                            [expected] => 7993c14bdfb0746ef14b92a1e2ced228b059b24f038d1d9813e02af130b12b778a59deeb71b1c391eb5762c30e775f504bacf284001fbb03cc3208c6e716d504
                            [current] => 
                        )

                    [core/skeleton/Templates/Invoice.odt] => Array
                        (
                            [expected] => 91c002064fda834cfe561ce7d91809baaec17b301a38dc7ab01709bf6086d43c691cc75b5eec7649325b1322493749c6b2f0182bafe739cfc3ee0c35a7c6b232
                            [current] => 
                        )

                    [core/skeleton/Templates/Letter.odt] => Array
                        (
                            [expected] => e0a3ff93c54d184cc796777139cd7ba0bd3ef25fa3616aabd85a7a79865f7cdfb1f7663bf1ac1f6d1ea48490c6ba856e2d776a2cc33e0c1cd2999ee80fd1b410
                            [current] => 
                        )

                    [core/skeleton/Templates/Meeting notes.md] => Array
                        (
                            [expected] => 60a902c73909bee3c8ff4c26d2378cb24a3a7cb6fcf531eaea294fd2a57f1ed5b27c611644cf41a702f22017d9ae02b0fb5cee0149dcf6d85ab59c58018ad6b0
                            [current] => 
                        )

                    [core/skeleton/Templates/Product plan.md] => Array
                        (
                            [expected] => 2e55c6e9f477a6d861b20fe0e0e9a27d5aa4bbb585cc751cb20b44d1247155004b9885b6544c6568fe7e044d0ba4d1ccd9dc62a7d8c6c8034739ede607f5ab1d
                            [current] => 
                        )

                    [core/skeleton/Templates/Readme.md] => Array
                        (
                            [expected] => d06d7bb96c0ed38f1b6fd10cb065f915c8f5522cd85f9a0ca3a5a4a29ca81bc8a7c11917cffe964a68f7d6481283bb100910343c844159d348eb1201b460db1c
                            [current] => 
                        )

                    [core/skeleton/Templates/SWOT analysis.whiteboard] => Array
                        (
                            [expected] => 67529d68ae3c2b59123fb178f26e871b61fa8b4d05c0dc85f3114577a1076d3c2fa77de43beb2f6b9524ea4e9a546bff516c377d64e40868100a54193ef1933f
                            [current] => 
                        )

                    [core/skeleton/Templates/Simple.odp] => Array
                        (
                            [expected] => 0695dc9d1c4cee0a424b8a2030e19756b9265d111f74e7a05df4a2b99b92dfb42fb3bb0d82da75cbd29aea349b2b61e733f755d729dd521bca16de1df32b1dc9
                            [current] => 
                        )

                )

            [INVALID_HASH] => Array
                (
                    [core/skeleton/Documents/Readme.md] => Array
                        (
                            [expected] => 33525344e2114ee00037e4088a65b2b798b9245d977b4acc904365ce8f3208920085b1d064a085661e9b9c6a01826dfbbbb6cd6c7566e7ebd6bffc2a2f74104f
                            [current] => 4192fcd4e5a1baa9c6939af1f7ebf8ea536d47c0c3a4851847eba1874db77df09f804099599355b59366428f8fc3d2636d548811dd183178dea44b06ccd2bf0a
                        )

                    [core/skeleton/Photos/Readme.md] => Array
                        (
                            [expected] => 6d372b06deb3cb73f17084d812ebd56160c9e795aac3acfe8585c0365eabc42579c71c09d6c7f70c6c50444f93cdf274f4f10c7d0bcfc46f5ae4ff20846ec87f
                            [current] => 5120c0d04ed0f9a9739717013c82838db2146686ffa843b36f5a3433a1e40320541a5f820edbb0b06bc05d535cfea10cd5ac11d67edbfa58d29e706c8ac15aa1
                        )

                )

            [EXTRA_FILE] => Array
                (
                    [core/skeleton/Modèles/Notedefrais.ods] => Array
                        (
                            [expected] => 
                            [current] => 9004920e6057f02758d1267e697c12ac56b83c56f104e7d2febd344bc0cca98ce079d983c70205ddba8776ac76c3804b6ba69ca2b9b05f48e3ab9310bab2dd5f
                        )

                    [core/skeleton/Modèles/PresentationSimple.odp] => Array
                        (
                            [expected] => 
                            [current] => 28ff084125d83e7bf0a53774ad836e46fdc7bfc6f190461df714ab8c25c38a7378efb6b3162811fd2ff008abf5f8195ed9c7c1711244439eee6f8e33ce023800
                        )

                    [core/skeleton/Modèles/Facture.odt] => Array
                        (
                            [expected] => 
                            [current] => b846d751f2f29ce759f045ce1f876bebbf9f5bb3e6852c6c035e12ae729609f410bee5151a9c50d404465c5e3dc7809d70bbf9ddeadb66345d80a40e053541ba
                        )

                    [core/skeleton/Modèles/Lettre.odt] => Array
                        (
                            [expected] => 
                            [current] => b440aaa422550013d07f80edc64e4dbff939f306041fca23a6682e8f5d89931839d0c60c077aa8bd4fcda846c800b90a4d203594dd88527f3ca46a1b1ef004a3
                        )

                    [core/skeleton/Modèles/Readme.md] => Array
                        (
                            [expected] => 
                            [current] => b33950776d9cfe2a8888e56e0f5ced38ca36f4409e3435dfe93a2f0b2fd5244e02c3dce5e83477e481d5cdc01182d38d8c99c1729c4972db2aafb0d4b7971bad
                        )

                    [core/skeleton/Modèles/PresentationRecherchee.odp] => Array
                        (
                            [expected] => 
                            [current] => 38de04579334ad4c9dd1be0dc5142609ee1b72425b11d4cb600cf766d6c4df543752a40368af755f07305b9b316b401073461ef9a6cd4976970b11430e51de09
                        )

                )

        )

)

Nextcloud Logs

{"reqId":"oEJrU0gwMVjEUAcymgB0","level":4,"time":"2022-05-15T08:42:02+02:00","remoteAddr":"2a01:hidden:f3:27da:de3a:46df","user":"admin","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/admin/","message":"in_array(): Argument #2 ($haystack) must be of type array, string given","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0","version":"23.0.4.1","exception":{"Exception":"TypeError","Message":"in_array(): Argument #2 ($haystack) must be of type array, string given","Code":0,"Trace":[{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":349,"function":"in_array"},{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":363,"function":"getEnabledDefaultProvider","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":379,"function":"registerCoreProvider","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":269,"function":"registerCoreProviders","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/apps/dav/lib/Connector/Sabre/FilesPlugin.php","line":378,"function":"isAvailable","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/PropFind.php","line":95,"function":"OCA\\DAV\\Connector\\Sabre\\{closure}","class":"OCA\\DAV\\Connector\\Sabre\\FilesPlugin","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/mypathtoweb/apps/dav/lib/Connector/Sabre/FilesPlugin.php","line":379,"function":"handle","class":"Sabre\\DAV\\PropFind","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"handleGetProperties","class":"OCA\\DAV\\Connector\\Sabre\\FilesPlugin","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/Server.php","line":1052,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/Server.php","line":984,"function":"getPropertiesByNode","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/Server.php","line":1661,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/Server.php","line":1646,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/apps/dav/lib/Server.php","line":339,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/mypathtoweb/remote.php","line":166,"args":["/mypathtoweb/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/mypathtoweb/lib/private/PreviewManager.php","Line":349,"CustomMessage":"--"}}
{"reqId":"FW6mSMwDZyy1CG1vXEHx","level":3,"time":"2022-05-15T08:42:03+02:00","remoteAddr":"2a01:hidden:27da:de3a:46df","user":"admin","app":"index","method":"GET","url":"/apps/recommendations/api/recommendations","message":"in_array(): Argument #2 ($haystack) must be of type array, string given in file '/mypathtoweb/lib/private/PreviewManager.php' line 349","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0","version":"23.0.4.1","exception":{"Exception":"Exception","Message":"in_array(): Argument #2 ($haystack) must be of type array, string given in file '/mypathtoweb/lib/private/PreviewManager.php' line 349","Code":0,"Trace":[{"file":"/mypathtoweb/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/mypathtoweb/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/mypathtoweb/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/mypathtoweb/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/mypathtoweb/lib/private/AppFramework/Http/Dispatcher.php","Line":158,"Previous":{"Exception":"TypeError","Message":"in_array(): Argument #2 ($haystack) must be of type array, string given","Code":0,"Trace":[{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":349,"function":"in_array"},{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":363,"function":"getEnabledDefaultProvider","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":379,"function":"registerCoreProvider","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/lib/private/PreviewManager.php","line":269,"function":"registerCoreProviders","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/apps/recommendations/lib/Service/RecommendationService.php","line":76,"function":"isAvailable","class":"OC\\PreviewManager","type":"->"},{"file":"/mypathtoweb/apps/recommendations/lib/Service/RecommendationService.php","line":96,"function":"addPreviews","class":"OCA\\Recommendations\\Service\\RecommendationService","type":"->"},{"file":"/mypathtoweb/apps/recommendations/lib/Controller/RecommendationController.php","line":70,"function":"getRecommendations","class":"OCA\\Recommendations\\Service\\RecommendationService","type":"->"},{"file":"/mypathtoweb/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"index","class":"OCA\\Recommendations\\Controller\\RecommendationController","type":"->"},{"file":"/mypathtoweb/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/mypathtoweb/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/mypathtoweb/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/mypathtoweb/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/mypathtoweb/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/mypathtoweb/lib/private/PreviewManager.php","Line":349},"CustomMessage":"--"}}

Logs level 0 seem unrelevant

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbugneeds info

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions