What does this mean
TypeError: OCA\Files\Service\TagService::__construct(): Argument #4 ($homeFolder) must be of type OCP\Files\Folder, null given, called in /xxx/apps/files/lib/AppInfo/Application.php on line 111
…
Nextcloud 26
PHP 8.1
What does this mean
TypeError: OCA\Files\Service\TagService::__construct(): Argument #4 ($homeFolder) must be of type OCP\Files\Folder, null given, called in /xxx/apps/files/lib/AppInfo/Application.php on line 111
…
Nextcloud 26
PHP 8.1
Could be a side effext of fix(files): Fix controller setup for guests by nickvergessen · Pull Request #36904 · nextcloud/server · GitHub
Having the full stack trace would help.
Don’t know if it is related, but I have enabled the PHP extension sysvsem and so far it seems like the error is gone.
TypeError: OCA\Files\Service\TagService::__construct(): Argument #4 ($homeFolder) must be of type OCP\Files\Folder, null given, called in /xxx/apps/files/lib/AppInfo/Application.php on line 111
/xxx/apps/files/lib/AppInfo/Application.php - line 111:
OCA\Files\Service\TagService->__construct()
/xxx/lib/private/AppFramework/Utility/SimpleContainer.php - line 171:
OCA\Files\AppInfo\Application->OCA\Files\AppInfo\{closure}("*** sensiti ... *")
/xxx/3rdparty/pimple/pimple/src/Pimple/Container.php - line 122:
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensiti ... *")
/xxx/lib/private/AppFramework/Utility/SimpleContainer.php - line 138:
Pimple\Container->offsetGet()
/xxx/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 487:
OC\AppFramework\Utility\SimpleContainer->query()
/xxx/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 465:
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
/xxx/lib/private/AppFramework/Utility/SimpleContainer.php - line 65:
OC\AppFramework\DependencyInjection\DIContainer->query()
/xxx/apps/files/lib/AppInfo/Application.php - line 90:
OC\AppFramework\Utility\SimpleContainer->get()
/xxx/lib/private/AppFramework/Utility/SimpleContainer.php - line 171:
OCA\Files\AppInfo\Application->OCA\Files\AppInfo\{closure}("*** sensiti ... *")
/xxx/3rdparty/pimple/pimple/src/Pimple/Container.php - line 122:
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensiti ... *")
/xxx/lib/private/AppFramework/Utility/SimpleContainer.php - line 138:
Pimple\Container->offsetGet()
/xxx/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 487:
OC\AppFramework\Utility\SimpleContainer->query()
/xxx/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 465:
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
/xxx/lib/private/AppFramework/Utility/SimpleContainer.php - line 65:
OC\AppFramework\DependencyInjection\DIContainer->query()
/xxx/lib/private/AppFramework/App.php - line 148:
OC\AppFramework\Utility\SimpleContainer->get()
/xxx/lib/private/Route/Router.php - line 315:
OC\AppFramework\App::main()
/xxx/lib/base.php - line 1055:
OC\Route\Router->match()
/xxx/index.php - line 36:
OC::handleRequest()
Same issue here in all my NC26 installations (also PHP8.1).
[index] Fehler: TypeError: OCA\Files\Service\TagService::__construct(): Argument #4 ($homeFolder) must be of type OCP\Files\Folder, null given, called in /var/www/nextcloud/apps/files/lib/AppInfo/Application.php on line 111 at <<closure>>
0. /var/www/nextcloud/apps/files/lib/AppInfo/Application.php line 111
OCA\Files\Service\TagService->__construct()
1. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 171
OCA\Files\AppInfo\Application->OCA\Files\AppInfo\{closure}("*** sensitive parameters replaced ***")
2. /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php line 122
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
3. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 138
Pimple\Container->offsetGet()
4. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 487
OC\AppFramework\Utility\SimpleContainer->query()
5. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
6. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 65
OC\AppFramework\DependencyInjection\DIContainer->query()
7. /var/www/nextcloud/apps/files/lib/AppInfo/Application.php line 90
OC\AppFramework\Utility\SimpleContainer->get()
8. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 171
OCA\Files\AppInfo\Application->OCA\Files\AppInfo\{closure}("*** sensitive parameters replaced ***")
9. /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php line 122
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
10. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 138
Pimple\Container->offsetGet()
11. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 487
OC\AppFramework\Utility\SimpleContainer->query()
12. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
13. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 65
OC\AppFramework\DependencyInjection\DIContainer->query()
14. /var/www/nextcloud/lib/private/AppFramework/App.php line 148
OC\AppFramework\Utility\SimpleContainer->get()
15. /var/www/nextcloud/lib/private/Route/Router.php line 315
OC\AppFramework\App::main()
16. /var/www/nextcloud/lib/base.php line 1055
OC\Route\Router->match()
17. /var/www/nextcloud/index.php line 36
OC::handleRequest()
GET /apps/files/api/v1/stats
from 10.0.1.60 at 2023-04-03T14:32:19+02:00
It did not help, still same error
Same issue on my setup as well. Created my account just to complain about this.
[index] Error: TypeError: OCA\Files\Service\TagService::__construct(): Argument #4 ($homeFolder) must be of type OCP\Files\Folder, null given, called in /config/www/nextcloud/apps/files/lib/AppInfo/Application.php on line 111 at <<closure>>
0. /config/www/nextcloud/apps/files/lib/AppInfo/Application.php line 111
OCA\Files\Service\TagService->__construct()
1. /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 171
OCA\Files\AppInfo\Application->OCA\Files\AppInfo\{closure}("*** sensitive parameters replaced ***")
2. /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php line 122
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
3. /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 138
Pimple\Container->offsetGet()
4. /config/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 487
OC\AppFramework\Utility\SimpleContainer->query()
5. /config/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
6. /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 65
OC\AppFramework\DependencyInjection\DIContainer->query()
7. /config/www/nextcloud/apps/files/lib/AppInfo/Application.php line 90
OC\AppFramework\Utility\SimpleContainer->get()
8. /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 171
OCA\Files\AppInfo\Application->OCA\Files\AppInfo\{closure}("*** sensitive parameters replaced ***")
9. /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php line 122
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
10. /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 138
Pimple\Container->offsetGet()
11. /config/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 487
OC\AppFramework\Utility\SimpleContainer->query()
12. /config/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
13. /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 65
OC\AppFramework\DependencyInjection\DIContainer->query()
14. /config/www/nextcloud/lib/private/AppFramework/App.php line 148
OC\AppFramework\Utility\SimpleContainer->get()
15. /config/www/nextcloud/lib/private/Route/Router.php line 315
OC\AppFramework\App::main()
16. /config/www/nextcloud/lib/base.php line 1056
OC\Route\Router->match()
17. /config/www/nextcloud/index.php line 36
OC::handleRequest()
GET /apps/files/api/v1/stats
from 50.5.2.19 at 2023-04-21T18:20:47+00:00
I reinstalled nextcloud but this time I left the config folder as default in the docker command. This fixed the issue. This was the only change between the this new reinstall and the previous one. The redefined config folder or the properties or permissions of that folder is the root cause of the issue.
@Citadel
i didn’t use a docker image for it. I’m using also the default path to the config file.
it would be nice to know what permissions you have to the files or folders now.