Issue: when trying to accesses files on my account (admin) I get an Internal server error. it only happens when selecting files. I tested another account and that account works fine.
Internal Server error:
formatted log entry:
[index] Error: Object of class OC\Files\Node\File could not be converted to string in file '/var/www/html/lib/private/Files/Template/TemplateManager.php' line 182
GET /index.php/apps/files/
from 172.24.0.1 by peglegtv at Jan 22, 2025, 2:51:49 PM
Raw log entry:
{
"reqId": "uiYxJJKrzNsS438vWPxZ",
"level": 3,
"time": "2025-01-22T20:51:49+00:00",
"remoteAddr": "172.24.0.1",
"user": "peglegtv",
"app": "index",
"method": "GET",
"url": "/index.php/apps/files/",
"message": "Object of class OC\\Files\\Node\\File could not be converted to string in file '/var/www/html/lib/private/Files/Template/TemplateManager.php' line 182",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
"version": "30.0.5.1",
"exception": {
"Exception": "Exception",
"Message": "Object of class OC\\Files\\Node\\File could not be converted to string in file '/var/www/html/lib/private/Files/Template/TemplateManager.php' line 182",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/lib/private/AppFramework/App.php",
"line": 161,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Files\\Controller\\ViewController"
},
"index"
]
},
{
"file": "/var/www/html/lib/private/Route/Router.php",
"line": 302,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OCA\\Files\\Controller\\ViewController",
"index",
{
"__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
},
{
"_route": "files.view.index"
}
]
},
{
"file": "/var/www/html/lib/base.php",
"line": 1003,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/apps/files/"
]
},
{
"file": "/var/www/html/index.php",
"line": 24,
"function": "handleRequest",
"class": "OC",
"type": "::",
"args": []
}
],
"File": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"Line": 146,
"Previous": {
"Exception": "Error",
"Message": "Object of class OC\\Files\\Node\\File could not be converted to string",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/lib/private/Files/Template/TemplateManager.php",
"line": 241,
"function": "getTemplateFolder",
"class": "OC\\Files\\Template\\TemplateManager",
"type": "->",
"args": []
},
{
"file": "/var/www/html/apps/files/lib/Controller/ViewController.php",
"line": 196,
"function": "hasTemplateDirectory",
"class": "OC\\Files\\Template\\TemplateManager",
"type": "->",
"args": []
},
{
"file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"line": 208,
"function": "index",
"class": "OCA\\Files\\Controller\\ViewController",
"type": "->",
"args": [
"",
"",
null,
false
]
},
{
"file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"line": 114,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Files\\Controller\\ViewController"
},
"index"
]
},
{
"file": "/var/www/html/lib/private/AppFramework/App.php",
"line": 161,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Files\\Controller\\ViewController"
},
"index"
]
},
{
"file": "/var/www/html/lib/private/Route/Router.php",
"line": 302,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OCA\\Files\\Controller\\ViewController",
"index",
{
"__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
},
{
"_route": "files.view.index"
}
]
},
{
"file": "/var/www/html/lib/base.php",
"line": 1003,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/apps/files/"
]
},
{
"file": "/var/www/html/index.php",
"line": 24,
"function": "handleRequest",
"class": "OC",
"type": "::",
"args": []
}
],
"File": "/var/www/html/lib/private/Files/Template/TemplateManager.php",
"Line": 182
},
"message": "Object of class OC\\Files\\Node\\File could not be converted to string in file '/var/www/html/lib/private/Files/Template/TemplateManager.php' line 182",
"exception": [],
"CustomMessage": "Object of class OC\\Files\\Node\\File could not be converted to string in file '/var/www/html/lib/private/Files/Template/TemplateManager.php' line 182"
},
"id": "67915c09d51c0"
}
Docker container, Version Nextcloud Hub 9 30.0.5
running on OMV 6.9.16-1 (Shaitan)
What I’ve tried:
tried pulling a new image
docker exec -it --user www-data Nextcloud /var/www/html/occ files:scan-app-data
no errors found
docker exec -it --user www-data Nextcloud /var/www/html/occ maintenance:repair
docker exec -it --user www-data Nextcloud /var/www/html/occ files:scan peglegtv
no errors found
I’m at a loss, please help