Undefined index errors in logging

Nextcloud version (eg, 20.0.5): 19.0.8
Operating system and version (eg, Ubuntu 20.04): shared environment - Linux 4.15.0-130-generic x86_64
Apache or nginx version (eg, Apache 2.4.25): unknown - shared environment
PHP version (eg, 7.4): 7.3.22

The issue you are facing:
I get the following errors in my logging.

Error Error: Undefined index: size at /www/htdocs/w00b5f79/nextcloud/lib/private/Files/Cache/Scanner.php#433 2021-02-01T20:52:24+0100
Error Error: Undefined index: size at /www/htdocs/w00b5f79/nextcloud/lib/private/Files/Cache/Scanner.php#430 2021-02-01T20:52:24+0100
Error Error: Undefined index: mimetype at /www/htdocs/w00b5f79/nextcloud/lib/private/Files/Cache/Scanner.php#427 2021-02-01T20:52:24+0100
Error Error: Undefined index: mimetype at /www/htdocs/w00b5f79/nextcloud/lib/private/Files/Cache/Scanner.php#425 2021-02-01T20:52:24+0100
Error Error: Undefined index: mimetype at /www/htdocs/w00b5f79/nextcloud/lib/private/Files/Cache/Scanner.php#237 2021-02-01T20:52:24+0100
Error Error: Undefined index: mimetype at /www/htdocs/w00b5f79/nextcloud/lib/private/Files/Cache/Scanner.php#167 2021-02-01T20:52:24+0100
Error Error: Undefined index: name at /www/htdocs/w00b5f79/nextcloud/lib/private/Files/Cache/Scanner.php#418 2021-02-01T20:52:24+0100
Error Error: Undefined index: permissions at /www/htdocs/w00b5f79/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php#160 2021-02-01T20:52:23+0100

The forum doesn´t let me post the details to all messages because it would be to many characters. So here are just the details of the first error.

detailed error messages

{“reqId”:“YBhb9eLl9-zCLgolTGKKyQAAJBw”,“level”:3,“time”:“2021-02-01T19:52:23+00:00”,“remoteAddr”:“91.50.244.183”,“user”:“LIadmin”,“app”:“PHP”,“method”:“GET”,“url”:“/apps/recommendations/api/recommendations”,“message”:{“Exception”:“Error”,“Message”:“Undefined index: permissions at /www/htdocs/w00b5f79/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php#160”,“Code”:0,“Trace”:[{“file”:“/www/htdocs/w00b5f79/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php”,“line”:160,“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:“::”,“args”:[8,“Undefined index: permissions”,“/www/htdocs/w00b5f79/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php”,160,{“directory”:“*** sensitive parameter replaced “,“data”:{“scan_permissions”:null}}]},{“function”:“getDirectoryContent”,“class”:“OC\Files\Storage\Wrapper\PermissionsMask”,“type”:”->“,“args”:[” sensitive parameter replaced “]},{“file”:”/www/htdocs/w00b5f79/nextcloud/lib/private/Files/Cache/Scanner.php",“line”:408,“function”:“iterator_to_array”,“args”:[{“class”:“Generator”}]},{“file”:“/www/htdocs/w00b5f79/nextcloud/lib/private/Files/Cache/Scanner.php”,“line”:388,“function”:“handleChildren”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”,“args”:[" sensitive parameter replaced “,false,3,25759,true,0]},{“file”:”/www/htdocs/w00b5f79/nextcloud/lib/private/Files/Cache/Scanner.php",“line”:340,“function”:“scanChildren”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”,“args”:[" sensitive parameter replaced “,false,3,25759,true]},{“file”:”/www/htdocs/w00b5f79/nextcloud/lib/private/Files/Cache/Watcher.php",“line”:106,“function”:“scan”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”,“args”:[" sensitive parameter replaced “,false]},{“file”:”/www/htdocs/w00b5f79/nextcloud/lib/private/Files/View.php",“line”:1349,“function”:“update”,“class”:“OC\Files\Cache\Watcher”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/www/htdocs/w00b5f79/nextcloud/lib/private/Files/View.php",“line”:1389,“function”:“getCacheEntry”,“class”:“OC\Files\View”,“type”:“->”,“args”:[{“cache”:{“class”:“OC\Files\Cache\Cache”},“scanner”:{“class”:“OC\Files\Cache\Scanner”},“watcher”:null,“propagator”:null,“updater”:null,“class”:“OCA\Files_Trashbin\Storage”}," sensitive parameter replaced “,”/LIadmin/files/Dateiaustausch/N\u00fctzliche Programme/Portable Windows Software"]},{“file”:“/www/htdocs/w00b5f79/nextcloud/lib/private/Files/Node/Root.php”,“line”:201,“function”:“getFileInfo”,“class”:“OC\Files\View”,“type”:“->”,“args”:[“/LIadmin/files/Dateiaustausch/N\u00fctzliche Programme/Portable Windows Software”]},{“file”:“/www/htdocs/w00b5f79/nextcloud/lib/private/Files/Node/Node.php”,“line”:287,“function”:“get”,“class”:“OC\Files\Node\Root”,“type”:“->”,“args”:[“/LIadmin/files/Dateiaustausch/N\u00fctzliche Programme/Portable Windows Software”]},{“file”:“/www/htdocs/w00b5f79/nextcloud/apps/recommendations/lib/Service/RecentlyCommentedFilesSource.php”,“line”:107,“function”:“getParent”,“class”:“OC\Files\Node\Node”,“type”:“->”,“args”:[]},{“file”:“/www/htdocs/w00b5f79/nextcloud/apps/recommendations/lib/Service/RecentlyCommentedFilesSource.php”,“line”:126,“function”:“getCommentedFile”,“class”:“OCA\Recommendations\Service\RecentlyCommentedFilesSource”,“type”:“->”,“args”:[{“class”:“OC\Comments\Comment”},{“class”:“OC\Files\Node\Folder”}]},{“function”:“getAllCommentedFiles”,“class”:“OCA\Recommendations\Service\RecentlyCommentedFilesSource”,“type”:“->”,“args”:[{“class”:“OC\User\User”}]},{“file”:“/www/htdocs/w00b5f79/nextcloud/apps/recommendations/lib/Service/RecentlyCommentedFilesSource.php”,“line”:164,“function”:“iterator_to_array”,“args”:[{“class”:“Generator”}]},{“file”:“/www/htdocs/w00b5f79/nextcloud/apps/recommendations/lib/Service/RecommendationService.php”,“line”:91,“function”:“getMostRecentRecommendation”,“class”:“OCA\Recommendations\Service\RecentlyCommentedFilesSource”,“type”:“->”,“args”:[{“class”:“OC\User\User”},6]},{“function”:“OCA\Recommendations\Service\{closure}”,“class”:“OCA\Recommendations\Service\RecommendationService”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/www/htdocs/w00b5f79/nextcloud/apps/recommendations/lib/Service/RecommendationService.php",“line”:92,“function”:“array_reduce”,“args”:[[" sensitive parameter replaced “,{“class”:“OCA\Recommendations\Service\RecentlyEditedFilesSource”},{“class”:“OCA\Recommendations\Service\RecentlySharedFilesSource”}],{“class”:“Closure”},” sensitive parameter replaced ***”]},{“file”:“/www/htdocs/w00b5f79/nextcloud/apps/recommendations/lib/Controller/RecommendationController.php”,“line”:70,“function”:“getRecommendations”,“class”:“OCA\Recommendations\Service\RecommendationService”,“type”:“->”,“args”:[{“class”:“OC\User\User”}]},{“file”:“/www/htdocs/w00b5f79/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:170,“function”:“index”,“class”:“OCA\Recommendations\Controller\RecommendationController”,“type”:“->”,“args”:},{“file”:“/www/htdocs/w00b5f79/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:100,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”,“args”:[{“class”:“OCA\Recommendations\Controller\RecommendationController”},“index”]},{“file”:“/www/htdocs/w00b5f79/nextcloud/lib/private/AppFramework/App.php”,“line”:137,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”,“args”:[{“class”:“OCA\Recommendations\Controller\RecommendationController”},“index”]},{“file”:“/www/htdocs/w00b5f79/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php”,“line”:47,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”,“args”:[“OCA\Recommendations\Controller\RecommendationController”,“index”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“_route”:“recommendations.recommendation.index”}]},{“function”:“__invoke”,“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:“->”,“args”:[{“_route”:“recommendations.recommendation.index”}]},{“file”:“/www/htdocs/w00b5f79/nextcloud/lib/private/Route/Router.php”,“line”:297,“function”:“call_user_func”,“args”:[{“class”:“OC\AppFramework\Routing\RouteActionHandler”},{“_route”:“recommendations.recommendation.index”}]},{“file”:“/www/htdocs/w00b5f79/nextcloud/lib/base.php”,“line”:1010,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”,“args”:[“/apps/recommendations/api/recommendations”]},{“file”:“/www/htdocs/w00b5f79/nextcloud/index.php”,“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:“::”,“args”:}],“File”:“/www/htdocs/w00b5f79/nextcloud/lib/private/Log/ErrorHandler.php”,“Line”:91,“CustomMessage”:“–”},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0”,“version”:“19.0.8.1”}

Does anyone have an idea how to fix this issues? I can not find anything about it in the forum or other places.

Let me know, if you need anymore information!

Thanks a lot!