[index] Error: Call to undefined method OC\Server::getL10NFactory() in file '/var/www/html/apps-extra/app_api/lib/Controller/ExAppsPageController.php' line 120
GET /index.php/apps/app_api/apps/list
from 192.168.21.2 by admin at Apr 9, 2026, 11:46:36 AM
Navigate to the Apps page. A An error occurred during the request. Unable to proceed. error notification shows up.
No error is thrown.
{"reqId":"xryeBTqC63zsOipLE5H7","level":3,"time":"2026-04-09T18:46:36+00:00","remoteAddr":"192.168.21.2","user":"admin","app":"index","method":"GET","url":"/index.php/apps/app_api/apps/list","scriptName":"/index.php","message":"Call to undefined method OC\\Server::getL10NFactory() in file '/var/www/html/apps-extra/app_api/lib/Controller/ExAppsPageController.php' line 120","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:149.0) Gecko/20100101 Firefox/149.0","version":"34.0.0.1","exception":{"Exception":"Exception","Message":"Call to undefined method OC\\Server::getL10NFactory() in file '/var/www/html/apps-extra/app_api/lib/Controller/ExAppsPageController.php' line 120","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":154,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\AppAPI\\Controller\\ExAppsPageController"},"listApps"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\AppAPI\\Controller\\ExAppsPageController","listApps",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"app_api.exappspage.listapps"}]},{"file":"/var/www/html/lib/base.php","line":1158,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/app_api/apps/list"]},{"file":"/var/www/html/index.php","line":25,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":107,"Previous":{"Exception":"Error","Message":"Call to undefined method OC\\Server::getL10NFactory()","Code":0,"Trace":[{"file":"/var/www/html/apps-extra/app_api/lib/Controller/ExAppsPageController.php","line":183,"function":"getAppsForCategory","class":"OCA\\AppAPI\\Controller\\ExAppsPageController","type":"->","args":[""]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":162,"function":"listApps","class":"OCA\\AppAPI\\Controller\\ExAppsPageController","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":75,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\AppAPI\\Controller\\ExAppsPageController"},"listApps"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":154,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\AppAPI\\Controller\\ExAppsPageController"},"listApps"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\AppAPI\\Controller\\ExAppsPageController","listApps",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"app_api.exappspage.listapps"}]},{"file":"/var/www/html/lib/base.php","line":1158,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/app_api/apps/list"]},{"file":"/var/www/html/index.php","line":25,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/apps-extra/app_api/lib/Controller/ExAppsPageController.php","Line":120},"message":"Call to undefined method OC\\Server::getL10NFactory() in file '/var/www/html/apps-extra/app_api/lib/Controller/ExAppsPageController.php' line 120","exception":"{\"class\":\"Exception\",\"message\":\"Call to undefined method OC\\Server::getL10NFactory() in file '/var/www/html/apps-extra/app_api/lib/Controller/ExAppsPageController.php' line 120\",\"code\":0,\"file\":\"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php:107\",\"trace\":\"#0 /var/www/html/lib/private/AppFramework/App.php(154): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\AppAPI\\Controller\\ExAppsPageController), 'listApps')\\n#1 /var/www/html/lib/private/Route/Router.php(321): OC\\AppFramework\\App::main('OCA\\\\AppAPI\\\\Cont...', 'listApps', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\\n#2 /var/www/html/lib/base.php(1158): OC\\Route\\Router->match('/apps/app_api/a...')\\n#3 /var/www/html/index.php(25): OC::handleRequest()\\n#4 {main}\",\"previous\":{\"class\":\"Error\",\"message\":\"Call to undefined method OC\\Server::getL10NFactory()\",\"code\":0,\"file\":\"/var/www/html/apps-extra/app_api/lib/Controller/ExAppsPageController.php:120\",\"trace\":\"#0 /var/www/html/apps-extra/app_api/lib/Controller/ExAppsPageController.php(183): OCA\\AppAPI\\Controller\\ExAppsPageController->getAppsForCategory('')\\n#1 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(162): OCA\\AppAPI\\Controller\\ExAppsPageController->listApps()\\n#2 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(75): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\AppAPI\\Controller\\ExAppsPageController), 'listApps')\\n#3 /var/www/html/lib/private/AppFramework/App.php(154): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\AppAPI\\Controller\\ExAppsPageController), 'listApps')\\n#4 /var/www/html/lib/private/Route/Router.php(321): OC\\AppFramework\\App::main('OCA\\\\AppAPI\\\\Cont...', 'listApps', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\\n#5 /var/www/html/lib/base.php(1158): OC\\Route\\Router->match('/apps/app_api/a...')\\n#6 /var/www/html/index.php(25): OC::handleRequest()\\n#7 {main}\"}}","CustomMessage":"Call to undefined method OC\\Server::getL10NFactory() in file '/var/www/html/apps-extra/app_api/lib/Controller/ExAppsPageController.php' line 120"},"id":"69d7f44e88838"}
Describe the bug
Recently, nextcloud/server#58808 removed the long-deprecated
OC\Server::getL10NFactorymethod, causing this error:I believe
OCP\L10N\IFactoryis the equivalent class to use instead here?Steps/Code to Reproduce
Navigate to the Apps page. A
An error occurred during the request. Unable to proceed.error notification shows up.Expected Results
No error is thrown.
Actual Results
Full log entry:
Setup configuration
app_api and server are on current main branches